Skip to content

Commit 582756e

Browse files
authored
Run CI with Swift 6.1 and 6.2
1 parent 0aa2374 commit 582756e

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

.github/workflows/swift.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,34 @@ on:
77
branches: [ "*" ]
88

99
jobs:
10-
build:
11-
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
10+
mac:
11+
name: Swift on macOS
12+
runs-on: macos-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Build
16+
run: swift build -v
17+
- name: Run tests
18+
run: swift test -v
19+
linux:
20+
name: Swift ${{ matrix.swift }} on Linux
21+
runs-on: ubuntu-latest
22+
container: swiftlang/swift:nightly-${{ matrix.swift }}-jammy
1223
strategy:
13-
matrix:
14-
os: ["macos-latest", "ubuntu-latest"]
15-
swift: ["6.1"]
1624
fail-fast: false
17-
runs-on: ${{ matrix.os }}
25+
matrix:
26+
swift: ["6.1", "6.2"]
1827
steps:
19-
- uses: swift-actions/setup-swift@682457186b71c25a884c45c06f859febbe259240
20-
with:
21-
swift-version: ${{ matrix.swift }}
2228
- uses: actions/checkout@v4
2329
- name: Build
2430
run: swift build -v
2531
- name: Run tests
2632
run: swift test -v
2733
format:
2834
name: Format
29-
runs-on: macos-latest
35+
runs-on: ubuntu-latest
36+
container: swift:6.1
3037
steps:
31-
- uses: swift-actions/setup-swift@682457186b71c25a884c45c06f859febbe259240
32-
with:
33-
swift-version: "6.1"
3438
- uses: actions/checkout@v4
3539
- name: Format
3640
run: swift format lint **/*.swift -r -s

0 commit comments

Comments
 (0)