Skip to content

Commit d29d575

Browse files
dmakarovLucasSte
authored andcommitted
[SOL] Skip 'ensure the stable version number is correct' step in CI
1 parent 7d3f9bd commit d29d575

File tree

2 files changed

+15
-20
lines changed

2 files changed

+15
-20
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ jobs:
145145
run: src/ci/scripts/verify-backported-commits.sh
146146
- name: ensure the stable version number is correct
147147
run: src/ci/scripts/verify-stable-version-number.sh
148+
env:
149+
SKIP_JOB: 1
150+
if: success() && !env.SKIP_JOB
148151
- name: run the build
149152
run: src/ci/scripts/run-build-from-ci.sh 2>&1
150153
env:
@@ -165,9 +168,6 @@ jobs:
165168
env:
166169
AWS_ACCESS_KEY_ID: "${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}"
167170
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
168-
<<<<<<< HEAD
169-
if: "success() && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
170-
=======
171171
SKIP_JOB: 1
172172
if: "success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
173173
push:
@@ -235,9 +235,6 @@ jobs:
235235
- name: install sccache
236236
run: src/ci/scripts/install-sccache.sh
237237
if: success() && !env.SKIP_JOB
238-
- name: select Xcode
239-
run: src/ci/scripts/select-xcode.sh
240-
if: success() && !env.SKIP_JOB
241238
- name: install clang
242239
run: src/ci/scripts/install-clang.sh
243240
if: success() && !env.SKIP_JOB
@@ -274,6 +271,11 @@ jobs:
274271
- name: ensure backported commits are in upstream branches
275272
run: src/ci/scripts/verify-backported-commits.sh
276273
if: success() && !env.SKIP_JOB
274+
- name: ensure the stable version number is correct
275+
run: src/ci/scripts/verify-stable-version-number.sh
276+
env:
277+
SKIP_JOB: 1
278+
if: success() && !env.SKIP_JOB
277279
- name: run the build
278280
run: src/ci/scripts/run-build-from-ci.sh
279281
env:
@@ -656,6 +658,8 @@ jobs:
656658
if: success() && !env.SKIP_JOB
657659
- name: ensure the stable version number is correct
658660
run: src/ci/scripts/verify-stable-version-number.sh
661+
env:
662+
SKIP_JOB: 1
659663
if: success() && !env.SKIP_JOB
660664
- name: run the build
661665
run: src/ci/scripts/run-build-from-ci.sh
@@ -784,6 +788,8 @@ jobs:
784788
if: success() && !env.SKIP_JOB
785789
- name: ensure the stable version number is correct
786790
run: src/ci/scripts/verify-stable-version-number.sh
791+
env:
792+
SKIP_JOB: 1
787793
if: success() && !env.SKIP_JOB
788794
- name: run the build
789795
run: src/ci/scripts/run-build-from-ci.sh
@@ -810,7 +816,6 @@ jobs:
810816
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
811817
SKIP_JOB: 1
812818
if: "success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
813-
>>>>>>> 36a67496bf5 ([SOL] CI: run tests on push and improve run times)
814819
master:
815820
name: master
816821
runs-on: ubuntu-latest

src/ci/github-actions/ci.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,9 @@ x--expand-yaml-anchors--remove:
228228

229229
- name: ensure the stable version number is correct
230230
run: src/ci/scripts/verify-stable-version-number.sh
231+
env:
232+
SKIP_JOB: 1
233+
<<: *step
231234

232235
- name: run the build
233236
# Redirect stderr to stdout to avoid reordering the two streams in the GHA logs.
@@ -350,18 +353,6 @@ jobs:
350353
continue-on-error: ${{ matrix.continue_on_error || false }}
351354
strategy:
352355
matrix:
353-
<<<<<<< HEAD
354-
# Check the `calculate_matrix` job to see how is the matrix defined.
355-
include: ${{ fromJSON(needs.calculate_matrix.outputs.jobs) }}
356-
# GitHub Actions fails the workflow if an empty list of jobs is provided to
357-
# the workflow, so we need to skip this job if nothing was produced by
358-
# the Python script.
359-
#
360-
# Unfortunately checking whether a list is empty is not possible in a nice
361-
# way due to GitHub Actions expressions limits.
362-
# This hack is taken from https://github.com/ferrocene/ferrocene/blob/d43edc6b7697cf1719ec1c17c54904ab94825763/.github/workflows/release.yml#L75-L82
363-
if: fromJSON(needs.calculate_matrix.outputs.jobs)[0] != null
364-
=======
365356
include:
366357
- name: mingw-check
367358
<<: *job-linux-4c
@@ -790,7 +781,6 @@ jobs:
790781
env:
791782
CODEGEN_BACKENDS: llvm,cranelift
792783
<<: *job-linux-16c
793-
>>>>>>> 9265f8c0263 ([SOL] CI: run tests for the bpfel-unknown-unknown target)
794784

795785
master:
796786
name: master

0 commit comments

Comments
 (0)