chore: Support Swift 5.9 - 5.10 #29
Workflow file for this run
This file contains 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: Tests | |
on: | |
push: | |
paths-ignore: | |
- '.github/**.md' | |
- 'README.md' | |
branches: | |
- main | |
pull_request: | |
paths-ignore: | |
- '.github/**.md' | |
- 'README.md' | |
types: [opened, synchronize, reopened, ready_for_review] | |
concurrency: | |
group: ci-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_15.3.app/Contents/Developer | |
jobs: | |
test: | |
name: Test ${{ matrix.os }} Swift ${{ matrix.swift }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
swift: ["5.7", "5.8", "5.9", "5.10"] | |
include: | |
- swift: 5.7 | |
xcode: 14.2 | |
os: macos-13 | |
- swift: 5.8 | |
xcode: 14.3 | |
os: macos-13 | |
- swift: 5.9 | |
xcode: 15.1 | |
os: macos-14 | |
- swift: 5.10 | |
xcode: 15.3 | |
os: macos-14 | |
steps: | |
- name: Setup Xcode version | |
if: runner.os == 'macOS' | |
uses: maxim-lobanov/[email protected] | |
with: | |
xcode-version: ${{ matrix.xcode }} | |
- name: Setup swift | |
if: matrix.swift != '' && (matrix.swift != 'latest' || runner.os != 'macOS') | |
uses: SwiftyLab/setup-swift@latest | |
with: | |
swift-version: ${{ matrix.swift }} | |
- name: Get swift version | |
run: swift --version | |
- name: Get swift version | |
if: runner.os == 'macOS' | |
run: xcrun --toolchain ${{ env.TOOLCHAINS }} swift --version | |
- name: Checkout Package | |
uses: actions/checkout@v4 | |
- name: Cache SPM | |
uses: actions/cache@v4 | |
with: | |
path: .build | |
key: v2-${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} | |
restore-keys: | | |
v2-${{ runner.os }}-spm- | |
- name: Test | |
run: make test-all | |
- name: Swift Coverage Report | |
continue-on-error: true | |
uses: maxep/[email protected] | |
with: | |
file-format: lcov | |
output-file: ./coverage.lcov |