mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix the try build when pushing to branches (#30903)
Make it so that all try builds go through try.yml and pass workflow_call arguments as expected to subsequent workflows. Co-authored-by: Samson <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
74798c4b7b
commit
f2882879d8
6 changed files with 47 additions and 39 deletions
8
.github/workflows/mac.yml
vendored
8
.github/workflows/mac.yml
vendored
|
@ -40,8 +40,6 @@ on:
|
|||
required: false
|
||||
default: false
|
||||
type: boolean
|
||||
push:
|
||||
branches: ["try-mac", "try-wpt-mac", "try-wpt-mac-2020"]
|
||||
|
||||
env:
|
||||
RUST_BACKTRACE: 1
|
||||
|
@ -97,7 +95,7 @@ jobs:
|
|||
- name: Script tests
|
||||
run: ./mach test-scripts
|
||||
- name: Unit tests
|
||||
if: ${{ inputs.unit-tests || github.ref_name == 'try-mac' }}
|
||||
if: ${{ inputs.unit-tests }}
|
||||
uses: nick-fields/retry@v2
|
||||
with:
|
||||
timeout_minutes: 20 # https://github.com/servo/servo/issues/30275
|
||||
|
@ -143,7 +141,7 @@ jobs:
|
|||
path: target.tar.gz
|
||||
|
||||
wpt-2020:
|
||||
if: ${{ github.ref_name == 'try-wpt-mac-2020' || inputs.wpt-layout == '2020' || inputs.wpt-layout == 'all' }}
|
||||
if: ${{ inputs.wpt-layout == '2020' || inputs.wpt-layout == 'all' }}
|
||||
name: Mac WPT Tests 2020
|
||||
needs: ["build"]
|
||||
uses: ./.github/workflows/mac-wpt.yml
|
||||
|
@ -153,7 +151,7 @@ jobs:
|
|||
secrets: inherit
|
||||
|
||||
wpt-2013:
|
||||
if: ${{ github.ref_name == 'try-wpt-mac' || inputs.wpt-layout == '2013' || inputs.wpt-layout == 'all' }}
|
||||
if: ${{ inputs.wpt-layout == '2013' || inputs.wpt-layout == 'all' }}
|
||||
name: Mac WPT Tests 2013
|
||||
needs: ["build"]
|
||||
uses: ./.github/workflows/mac-wpt.yml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue