Skip to content

Commit 3bdd346

Browse files
RISCfutureclaude
andcommitted
Standardize CI matrix: Swift 6.0-6.2 on macOS 14-15
Test across the full range of supported Swift 6 versions: - macOS 14: Swift 6.0, 6.1 - macOS 15: Swift 6.1, 6.2 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 511cacb commit 3bdd346

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,15 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
swift: ["6.2"]
20-
os: [macos-13, macos-14, macos-15]
19+
include:
20+
- os: macos-14
21+
swift: "6.0"
22+
- os: macos-14
23+
swift: "6.1"
24+
- os: macos-15
25+
swift: "6.1"
26+
- os: macos-15
27+
swift: "6.2"
2128
runs-on: ${{ matrix.os }}
2229
steps:
2330
- uses: actions/checkout@v4
@@ -37,18 +44,19 @@ jobs:
3744
swift-format:
3845
name: Run swift-format
3946
runs-on: ubuntu-latest
47+
container:
48+
image: swift:latest
4049
steps:
4150
- uses: actions/checkout@v4
42-
- uses: SwiftyLab/setup-swift@latest
43-
with:
44-
swift-version: "6.2"
51+
- name: Install dependencies
52+
run: apt-get update && apt-get install -y wget
4553
- name: Download .swift-format config
46-
run: curl -o .swift-format https://gist.githubusercontent.com/RISCfuture/e0c21afb7bd80a88d128a42bf40d2ecd/raw/.swift-format
54+
run: wget -O .swift-format https://gist.githubusercontent.com/RISCfuture/e0c21afb7bd80a88d128a42bf40d2ecd/raw/.swift-format
4755
- name: Install swift-format
4856
run: |
4957
git clone https://github.com/swiftlang/swift-format.git
5058
cd swift-format
5159
swift build -c release
52-
sudo cp .build/release/swift-format /usr/local/bin/
60+
cp .build/release/swift-format /usr/local/bin/
5361
- name: Run swift-format lint
5462
run: swift-format lint -r .

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 6.2
1+
// swift-tools-version: 6.0
22

33
import PackageDescription
44

0 commit comments

Comments
 (0)