diff --git a/.github/workflows/clangpdb-ci.yml b/.github/workflows/clangpdb-ci.yml index d08d478..a5fea87 100644 --- a/.github/workflows/clangpdb-ci.yml +++ b/.github/workflows/clangpdb-ci.yml @@ -25,6 +25,11 @@ on: branches: - main +concurrency: + group: clangpdb-package-ci-${{ github.ref }} + + cancel-in-progress: true + jobs: package-matrix: name: Gather Repository Packages @@ -69,3 +74,24 @@ jobs: python-version: "3.12" package-config: ${{ needs.package-matrix.outputs.matrix }} + + final: + name: Collapse Results + if: ${{ always() }} + + needs: [ubuntu-ci, windows-ci] + runs-on: ubuntu-latest + + steps: + - name: Check Matrix Jobs Results + run: | + echo "Ubuntu CI result: ${{ needs.ubuntu-ci.result }}" + echo "Windows CI result: ${{ needs.windows-ci.result }}" + + if [[ "${{ needs.ubuntu-ci.result }}" == "failure" || "${{ needs.windows-ci.result }}" == "failure" ]]; then + echo "One or more CI jobs failed" + exit 1 + else + echo "All ubuntu and windows CI matrix jobs completed successfully" + fi +