Add try-wpt-2020 runner

This commit is contained in:
sagudev 2023-04-24 07:54:13 +02:00 committed by Martin Robinson
parent 8bed625d28
commit 200f90cf9f
3 changed files with 7 additions and 7 deletions

View file

@ -39,13 +39,13 @@ on:
default: false
type: boolean
push:
branches: ["try-linux", "try-wpt"]
branches: ["try-linux", "try-wpt", "try-wpt-2020"]
env:
RUST_BACKTRACE: 1
SHELL: /bin/bash
LAYOUT: "${{ contains(inputs.layout, '2020') && 'layout-2020' || 'layout-2013' }}"
PACKAGE: "${{ contains(inputs.layout, '2020') && 'linux-layout2020' || 'linux' }}"
LAYOUT: "${{ (contains(inputs.layout, '2020') || github.ref_name == 'try-wpt-2020') && 'layout-2020' || 'layout-2013' }}"
PACKAGE: "${{ (contains(inputs.layout, '2020') || github.ref_name == 'try-wpt-2020') && 'linux-layout2020' || 'linux' }}"
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
CCACHE: "sccache"
@ -102,7 +102,7 @@ jobs:
path: target.tar.gz
linux-wpt:
if: ${{ github.ref_name == 'try-wpt' || inputs.wpt }}
if: ${{ contains(github.ref_name, 'wpt') || inputs.wpt }}
name: Linux WPT Tests
runs-on: ubuntu-20.04
needs: ["build-linux"]
@ -183,7 +183,7 @@ jobs:
report-test-results:
name: Reporting test results
runs-on: ubuntu-latest
if: ${{ always() && !cancelled() && success('build-linux') && (github.ref_name == 'try-wpt' || inputs.wpt == 'test') }}
if: ${{ always() && !cancelled() && success('build-linux') && (contains(github.ref_name, 'wpt') || inputs.wpt == 'test') }}
needs:
- "linux-wpt"
steps:

View file

@ -5,7 +5,7 @@ name: Quick check
on:
push:
branches:
["**", "!master", "!auto", "!try", "!try-linux", "!try-mac", "!try-windows", "!try-wpt", "!dependabot/**"]
["**", "!master", "!auto", "!try", "!try-linux", "!try-mac", "!try-windows", "!try-wpt", "!try-wpt-2020", "!dependabot/**"]
jobs:
build-linux:

View file

@ -352,7 +352,7 @@ class MachCommands(CommandBase):
def try_jobs(self, jobs):
branches = []
# we validate branches because force pushing is destructive
VALID_TRY_BRACHES = ["try", "try-linux", "try-mac", "try-windows", "try-wpt"]
VALID_TRY_BRACHES = ["try", "try-linux", "try-mac", "try-windows", "try-wpt", "try-wpt-2020"]
for job in jobs:
# branches must start with try-
if "try" not in job: