mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 03:18:53 +00:00
* Testing workflows * Testing workflows * Testing workflows * Testing workflows * Testing workflows * Testing workflows * Update .github/workflows/run-test.yml --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
60 lines
1.5 KiB
YAML
60 lines
1.5 KiB
YAML
name: Build Linux
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
runs-on:
|
|
type: string
|
|
required: true
|
|
tag:
|
|
type: string
|
|
required: true
|
|
arch:
|
|
type: string
|
|
required: true
|
|
cpu:
|
|
type: string
|
|
required: true
|
|
assertions:
|
|
type: boolean
|
|
zig-optimize:
|
|
type: string
|
|
canary:
|
|
type: boolean
|
|
no-cache:
|
|
type: boolean
|
|
|
|
jobs:
|
|
build:
|
|
name: Build Linux
|
|
uses: ./.github/workflows/build-zig.yml
|
|
with:
|
|
os: linux
|
|
only-zig: false
|
|
runs-on: ${{ inputs.runs-on }}
|
|
tag: ${{ inputs.tag }}
|
|
arch: ${{ inputs.arch }}
|
|
cpu: ${{ inputs.cpu }}
|
|
assertions: ${{ inputs.assertions }}
|
|
zig-optimize: ${{ inputs.zig-optimize }}
|
|
canary: ${{ inputs.canary }}
|
|
no-cache: ${{ inputs.no-cache }}
|
|
on-failure:
|
|
if: ${{ github.repository_owner == 'oven-sh' && failure() }}
|
|
name: On Failure
|
|
needs: build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Send Message
|
|
uses: sarisia/actions-status-discord@v1
|
|
with:
|
|
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
|
nodetail: true
|
|
title: ""
|
|
description: |
|
|
### ❌ [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})
|
|
|
|
@${{ github.actor }}, the build for bun-${{ inputs.tag }} failed.
|
|
|
|
**[View logs](https://github.com/oven-sh/bun/actions/runs/${{ github.run_id }})**
|