From b0bce1c40454ce43a4e5b39f2d1de7dc83b17506 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Thu, 26 Oct 2023 09:27:05 -0700 Subject: [PATCH] Add test-rust-check-all for more stable branch protection checks This way we only need one required rust check on the branch protection settings. --- .github/workflows/rust.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a2d360e7ca..d12fdbf9fb 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -46,3 +46,17 @@ jobs: run: cargo build -p fiat-crypto --target thumbv7em-none-eabi --release --no-default-features - name: no_std / cargo hack fiat-crypto run: cargo hack build -p fiat-crypto --target thumbv7em-none-eabi --release --each-feature --exclude-features default,std + + test-rust-check-all: + runs-on: ubuntu-latest + needs: [test-rust, build-nostd] + if: always() + steps: + - run: echo 'The triggering workflow (test-rust) passed' + if: ${{ needs.test-rust.result == 'success' }} + - run: echo 'The triggering workflow (test-rust) failed' && false + if: ${{ needs.test-rust.result != 'success' }} + - run: echo 'The triggering workflow (build-nostd) passed' + if: ${{ needs.build-nostd.result == 'success' }} + - run: echo 'The triggering workflow (build-nostd) failed' && false + if: ${{ needs.build-nostd.result != 'success' }}