Skip to content

Commit 5de80bf

Browse files
committed
Pin Swift toolchain versions in CI to fix macOS SDK mismatch
1 parent fcc9c1c commit 5de80bf

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/swift.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,20 @@ jobs:
1818
runs-on: ${{ matrix.os }}
1919

2020
steps:
21-
- uses: SwiftyLab/setup-swift@main
21+
- uses: SwiftyLab/setup-swift@latest
22+
with:
23+
swift-version: ${{ matrix.os == 'windows-latest' && '6.3.1' || '6.2.3' }}
2224
- uses: actions/checkout@v4
2325

2426
- name: Install Linux dependencies
2527
if: runner.os == 'Linux'
2628
run: |
2729
sudo apt-get update
2830
sudo apt-get install -y libfontconfig1-dev
29-
31+
3032
- name: Build
3133
run: swift build -v
3234

3335
- name: Test
36+
if: matrix.os != 'windows-latest'
3437
run: swift test -v

0 commit comments

Comments
 (0)