mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 20:48:43 +00:00
Require job release-builds
to pass for merging (#1088)
Fixed #1072 Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
8e04ee15a3
commit
256fb36e74
1 changed files with 5 additions and 6 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
@ -149,6 +149,9 @@ jobs:
|
||||||
- run: just avoid-dev-deps
|
- run: just avoid-dev-deps
|
||||||
- run: just lint
|
- run: just lint
|
||||||
|
|
||||||
|
release-builds:
|
||||||
|
uses: ./.github/workflows/release-build.yml
|
||||||
|
|
||||||
# Dummy job to have a stable name for the "all tests pass" requirement
|
# Dummy job to have a stable name for the "all tests pass" requirement
|
||||||
tests-pass:
|
tests-pass:
|
||||||
name: Tests pass
|
name: Tests pass
|
||||||
|
@ -158,15 +161,11 @@ jobs:
|
||||||
- apple-m1-check
|
- apple-m1-check
|
||||||
- lint
|
- lint
|
||||||
- windows-aarch64-check
|
- windows-aarch64-check
|
||||||
|
- release-builds
|
||||||
if: always() # always run even if dependencies fail
|
if: always() # always run even if dependencies fail
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# fail if ANY dependency has failed or been skipped or cancelled
|
# fail if ANY dependency has failed or been skipped or cancelled
|
||||||
- if: "contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped') || contains(needs.*.result, 'cancelled')"
|
- if: "contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped') || contains(needs.*.result, 'cancelled')"
|
||||||
run: exit 1
|
run: exit 1
|
||||||
# Wait for 30s before release build to avoid overloading GitHub.
|
- run: exit 0
|
||||||
- run: sleep 30
|
|
||||||
|
|
||||||
release-builds:
|
|
||||||
needs: tests-pass
|
|
||||||
uses: ./.github/workflows/release-build.yml
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue