Skip to content

Commit 3141e3e

Browse files
committed
Update GitHub CI
1 parent 9446626 commit 3141e3e

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/swift.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,38 @@ jobs:
55
macos:
66
name: macOS
77
runs-on: macos-15
8+
strategy:
9+
matrix:
10+
config: ["debug", "release"]
11+
options: ["", "SWIFT_BUILD_DYNAMIC_LIBRARY=1"]
812
steps:
913
- name: Checkout
1014
uses: actions/checkout@v4
1115
- name: Swift Version
1216
run: swift --version
13-
- name: Build (Debug)
14-
run: swift build -c debug
15-
- name: Build (Release)
16-
run: swift build -c release
17-
- name: Test (Debug)
18-
run: swift test -c debug
17+
- name: Build
18+
run: ${{ matrix.options }} swift build -c ${{ matrix.config }}
19+
- name: Test
20+
run: ${{ matrix.options }} swift test -c ${{ matrix.config }}
1921

2022
linux:
2123
name: Linux
2224
strategy:
2325
matrix:
24-
container: ["swift:6.0.3", "swiftlang/swift:nightly"]
26+
container: ["swift:6.0.3", "swift:6.1.2"]
27+
config: ["debug", "release"]
28+
options: ["", "SWIFT_BUILD_DYNAMIC_LIBRARY=1"]
2529
runs-on: ubuntu-latest
2630
container: ${{ matrix.container }}-jammy
2731
steps:
2832
- name: Checkout
2933
uses: actions/checkout@v4
3034
- name: Swift Version
3135
run: swift --version
36+
- name: Build
37+
run: ${{ matrix.options }} swift build -c ${{ matrix.config }}
38+
- name: Test
39+
run: ${{ matrix.options }} swift test -c ${{ matrix.config }}
3240
- name: Build (Debug)
3341
run: swift build -c debug
3442
- name: Build (Release)

0 commit comments

Comments
 (0)