Merge pull request #2 from rcarver/swift6 #3
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
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - "*" | |
| workflow_dispatch: | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| mac: | |
| name: macOS | |
| strategy: | |
| matrix: | |
| xcode: ["16.4"] | |
| config: ["debug", "release"] | |
| runs-on: macos-15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Select Xcode ${{ matrix.xcode }} | |
| run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app | |
| - name: Run ${{ matrix.config }} tests | |
| run: swift test -c ${{ matrix.config }} | |
| linux: | |
| name: Linux | |
| strategy: | |
| matrix: | |
| swift: | |
| - "6.2" | |
| runs-on: ubuntu-latest | |
| container: swift:${{ matrix.swift }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build | |
| run: swift test |