From 3c35eac1e30f91a249f8b071070fc27762da2f5b Mon Sep 17 00:00:00 2001 From: Mattt Zmuda Date: Tue, 14 Oct 2025 13:58:39 -0700 Subject: [PATCH] Update CI workflow to test on Swift 6.2 --- .github/workflows/ci.yml | 40 ++++++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 889a1df..f81816b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,27 +2,35 @@ name: CI on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] jobs: test: - runs-on: macos-latest - + name: Swift ${{ matrix.swift }} on Xcode ${{ matrix.xcode }} + runs-on: ${{ matrix.runs-on }} + env: + DEVELOPER_DIR: "/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer" strategy: + fail-fast: false matrix: - swift-version: - - ^6 - - name: Build and Test (Swift ${{ matrix.swift-version }}) + include: + - swift: "6.0" + xcode: "16.0" + runs-on: macos-15 + - swift: "6.1" + xcode: "16.3" + runs-on: macos-15 + - swift: "6.2" + xcode: "26.0" + runs-on: macos-26 steps: - - uses: actions/checkout@v4 - - uses: swift-actions/setup-swift@v2 - with: - swift-version: ${{ matrix.swift-version }} - - name: Build - run: swift build -v - - name: Run tests - run: swift test -v + - uses: actions/checkout@v4 + + - name: Build + run: swift build -v + + - name: Test + run: swift test -v