From 37ec10cc254a8f10ab579535d1072abbdd6c6625 Mon Sep 17 00:00:00 2001 From: ibizaman Date: Thu, 24 Oct 2024 16:36:19 +0200 Subject: [PATCH] add final results step --- .github/workflows/build.yaml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 071288b..6b5953c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -67,7 +67,16 @@ jobs: run: | nix build .#checks.x86_64-linux.${{ matrix.check }} -# nix run github:Mic92/nix-fast-build -- \ -# --skip-cached --no-nom \ -# --max-jobs 1 \ -# --flake ".#checks.$(nix eval --raw --impure --expr builtins.currentSystem)" + results: + if: ${{ always() }} + runs-on: ubuntu-latest + name: Final Results + needs: [ tests ] + steps: + - run: | + result="${{ needs.tests.result }}" + if [[ $result == "success" || $result == "skipped" ]]; then + exit 0 + else + exit 1 + fi