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