Skip to content

Commit 9449153

Browse files
authored
Auto merge of #29198 - delan:ci-remove-branch-check-jobs, r=jdm
CI: remove branch check steps that don’t actually do anything f165e17 (#28778) adds a step to each job of the main build that ostensibly bails out of the job, if the context branch is not `auto` or one of the `try` branches relevant for that platform. But a step that runs `exit 0` doesn’t really have any effect. Since the main workflow already has `branches` limited to `auto` and the `try` branches, we can safely remove those steps without worrying about the main build running on dependabot branches etc. For example: * [dependabot/cargo/nom-7.1.2](https://github.com/servo/servo/actions?query=branch%3Adependabot%2Fcargo%2Fnom-7.1.2) only has a run for the pull request workflow * [this test build](https://github.com/delan/servo/actions/runs/3830596812/jobs/6518672884) shows that even if the branch check fails, the build continues --- - [ ] ~~`./mach build -d` does not report any errors~~ - [ ] ~~`./mach test-tidy` does not report any errors~~ - [ ] ~~These changes fix #___ (GitHub issue number if applicable)~~ <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because they affect the CI configuration
2 parents 9769f91 + 8663757 commit 9449153

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ jobs:
1717
name: Build (Windows)
1818
runs-on: windows-2019
1919
steps:
20-
- name: Branch check
21-
if: ${{ !contains('refs/heads/auto refs/heads/try refs/heads/try-windows', github.ref) }}
22-
run: exit 0
2320
- uses: actions/checkout@v3
2421
with:
2522
fetch-depth: 2
@@ -44,9 +41,6 @@ jobs:
4441
name: Build (Windows UWP x64)
4542
runs-on: windows-2019
4643
steps:
47-
- name: Branch check
48-
if: ${{ !contains('refs/heads/auto refs/heads/try refs/heads/try-windows', github.ref) }}
49-
run: exit 0
5044
- uses: actions/checkout@v3
5145
with:
5246
fetch-depth: 2
@@ -72,9 +66,6 @@ jobs:
7266
name: Build (Windows UWP arm64)
7367
runs-on: windows-2019
7468
steps:
75-
- name: Branch check
76-
if: ${{ !contains('refs/heads/auto refs/heads/try refs/heads/try-windows', github.ref) }}
77-
run: exit 0
7869
- uses: actions/checkout@v3
7970
with:
8071
fetch-depth: 2
@@ -98,9 +89,6 @@ jobs:
9889
name: Build (macOS)
9990
runs-on: macos-12
10091
steps:
101-
- name: Branch check
102-
if: ${{ !contains('refs/heads/auto refs/heads/try refs/heads/try-mac', github.ref) }}
103-
run: exit 0
10492
- uses: actions/checkout@v3
10593
with:
10694
fetch-depth: 2
@@ -202,9 +190,6 @@ jobs:
202190
name: Build (Linux)
203191
runs-on: ubuntu-20.04
204192
steps:
205-
- name: Branch check
206-
if: ${{ !contains('refs/heads/auto refs/heads/try refs/heads/try-linux refs/heads/try-wpt', github.ref) }}
207-
run: exit 0
208193
- uses: actions/checkout@v3
209194
with:
210195
fetch-depth: 2
@@ -238,9 +223,6 @@ jobs:
238223
matrix:
239224
chunk_id: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
240225
steps:
241-
- name: Branch check
242-
if: ${{ !contains('refs/heads/auto refs/heads/try refs/heads/try-wpt', github.ref) }}
243-
run: exit 0
244226
- uses: actions/checkout@v3
245227
with:
246228
fetch-depth: 2

0 commit comments

Comments
 (0)