Skip to content

Commit

Permalink
Add build-result job for CI
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Schwender <[email protected]>
  • Loading branch information
jschwe committed Oct 6, 2024
1 parent 800ea54 commit 926ef6a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 926ef6a

Please sign in to comment.