Fix CI for Xcode 26 and older Swift compilers #21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow will build a Swift project | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift | |
| name: Build Test | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| xcode-26: | |
| runs-on: macos-26 | |
| env: | |
| DEVELOPER_DIR: /Applications/Xcode_26.4.1.app/Contents/Developer | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Version | |
| run: swift --version | |
| - name: Build | |
| run: swift build -v | |
| - name: Test with coverage | |
| run: swift test --enable-code-coverage -v | |
| - name: Coverage path | |
| id: coverage | |
| run: echo "path=$(swift test --show-codecov-path)" >> "$GITHUB_OUTPUT" | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| files: ${{ steps.coverage.outputs.path }} | |
| flags: swiftpm | |
| name: SwiftNEW | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: false | |
| verbose: true | |
| xcode-16-3: | |
| runs-on: macos-15 | |
| env: | |
| DEVELOPER_DIR: /Applications/Xcode_16.3.app/Contents/Developer | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Version | |
| run: swift --version | |
| - name: Build | |
| run: swift build -v | |
| - name: Test | |
| run: swift test -v | |
| xcode-15-4: | |
| runs-on: macos-14 | |
| env: | |
| DEVELOPER_DIR: /Applications/Xcode_15.4.app/Contents/Developer | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Version | |
| run: swift --version | |
| - name: Build | |
| run: swift build -v | |
| # - name: Test | |
| # run: swift test -v | |
| xcode-15-0: | |
| runs-on: macos-14 | |
| env: | |
| DEVELOPER_DIR: /Applications/Xcode_15.0.app/Contents/Developer | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Version | |
| run: swift --version | |
| - name: Build | |
| run: swift build -v | |
| # - name: Test | |
| # run: swift test -v |