Skip to content

Commit 9c80007

Browse files
committed
check jobs
1 parent 8f45bf9 commit 9c80007

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

.github/bors.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ block_labels = ["needs-decision"]
22
delete_merged_branches = true
33
required_approvals = 1
44
status = [
5-
"build-riscv (stable%)",
6-
"build-riscv (1.59.0%)",
7-
"build-others (%)",
8-
"clippy (stable%)",
5+
"build-check",
6+
"clippy-check",
97
"rustfmt",
108
]

.github/workflows/build.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,13 @@ jobs:
5050
- uses: dtolnay/rust-toolchain@stable
5151
- name: Build crate for host OS
5252
run: cargo build ${{ matrix.cargo_flags }}
53+
54+
# Job to check that all the builds succeeded
55+
build-check:
56+
needs:
57+
- build-riscv
58+
- build-others
59+
runs-on: ubuntu-latest
60+
if: always()
61+
steps:
62+
- run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'

.github/workflows/clippy.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,12 @@ jobs:
3131
components: clippy
3232
- name: Run clippy
3333
run: cargo clippy --all ${{ matrix.cargo_flags }} -- -D warnings
34+
35+
# Job to check that all the lint checks succeeded
36+
clippy-check:
37+
needs:
38+
- clippy
39+
runs-on: ubuntu-latest
40+
if: always()
41+
steps:
42+
- run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'

0 commit comments

Comments
 (0)