Skip to content

Commit

Permalink
Added build fail check
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericsimard committed Oct 28, 2024
1 parent 0463656 commit 7e1a419
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/Build Swift scripts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,23 @@ jobs:
matrix:
os: [macos-14, macos-15, ubuntu-latest] # macos 15 comes with Swift 6 which has breaking changes vs Swift 5.*
fail-fast: false
continue-on-error: true

steps:
- name: Checkout code
uses: actions/[email protected]
- name: Print Swift version
run: swift --version
- name: Build Swift scripts
run: swiftc scripts/*.swift
run: swiftc scripts/*.swift || exit 1

check-builds:
needs: build
runs-on: ubuntu-latest
if: always()
steps:
- name: Check build matrix status
run: |
if [[ "${{ needs.build.result }}" == "failure" || "${{ needs.build.result }}" == "cancelled" ]]; then
echo "One or more builds failed"
exit 1
fi

0 comments on commit 7e1a419

Please sign in to comment.