From 926ef6a0445166179d0ec8618f9e830f3eddb2d6 Mon Sep 17 00:00:00 2001 From: Jonathan Schwender Date: Sun, 6 Oct 2024 14:10:06 +0200 Subject: [PATCH] Add build-result job for CI Signed-off-by: Jonathan Schwender --- .github/workflows/workflow.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 4dd3939..0957d9e 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -59,3 +59,17 @@ jobs: API_VERSION: "${{ steps.sdk-with-fixup.outputs.api-version }}" run: | ${SDK_PATH}/*/${API_VERSION}/native/llvm/bin/clang --version + + + build_result: + name: Result + runs-on: ubuntu-latest + needs: ["build"] + if: ${{ always() }} + steps: + - name: Mark the job as successful + if: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }} + run: exit 0 + - name: Mark the job as unsuccessful + if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }} + run: exit 1 \ No newline at end of file