11name : Swift
2-
32on : [push]
4-
53jobs :
6- build :
7- name : Build
8- strategy :
9- matrix :
10- swift : [6.0.2]
11- os : [ubuntu-20.04, macos-latest]
12- runs-on : ${{ matrix.os }}
4+
5+ macos :
6+ name : macOS
7+ runs-on : macos-15
138 steps :
14- - name : Install Swift
15- uses : slashmo/install-swift@v0.3.0
16- with :
17- version : ${{ matrix.swift }}
189 - name : Checkout
19- uses : actions/checkout@v2
10+ uses : actions/checkout@v4
2011 - name : Swift Version
2112 run : swift --version
2213 - name : Build (Debug)
2314 run : swift build -c debug
2415 - name : Build (Release)
2516 run : swift build -c release
26-
27- test-linux :
28- name : Test Linux
17+ - name : Test (Debug)
18+ run : swift test -c debug
19+
20+ linux :
21+ name : Linux
2922 strategy :
3023 matrix :
31- swift : [6.0.2 ]
32- os : [ ubuntu-20.04]
33- runs-on : ${{ matrix.os }}
24+ container : ["swift: 6.0.3", "swift:6.1.1", "swiftlang/swift:nightly" ]
25+ runs-on : ubuntu-latest
26+ container : ${{ matrix.container }}-jammy
3427 steps :
35- - name : Install Swift
36- uses : slashmo/install-swift@v0.3.0
37- with :
38- version : ${{ matrix.swift }}
3928 - name : Checkout
40- uses : actions/checkout@v2
29+ uses : actions/checkout@v4
4130 - name : Swift Version
4231 run : swift --version
43- - name : Test (Debug)
44- run : swift test --configuration debug --enable-code-coverage
45- - name : Test (Release)
46- run : swift test --configuration release -Xswiftc -enable-testing --enable-code-coverage
47- - name : Coverage Report
48- uses : maxep/spm-lcov-action@0.3.1
32+ - name : Build (Debug)
33+ run : swift build -c debug --build-tests
34+ - name : Build (Release)
35+ run : swift build -c release
4936
50- test-macOS :
51- name : Test macOS
52- runs-on : macos-latest
37+ android :
38+ name : Android
39+ strategy :
40+ fail-fast : false
41+ matrix :
42+ swift : ['6.1', 'nightly-6.2']
43+ runs-on : macos-15
44+ timeout-minutes : 30
5345 steps :
54- - name : Checkout
55- uses : actions/checkout@v2
56- - name : Install Swift
57- uses : slashmo/install-swift@v0.3.0
58- with :
59- version : 6.0.2
60- - name : Swift Version
61- run : swift --version
62- - name : Test (Debug)
63- run : swift test --configuration debug --enable-code-coverage
64- - name : Test (Release)
65- run : swift test --configuration release -Xswiftc -enable-testing --enable-code-coverage
46+ - uses : actions/checkout@v4
47+ - name : " Build Swift Package for Android"
48+ run : |
49+ brew install skiptools/skip/skip || (brew update && brew install skiptools/skip/skip)
50+ skip android sdk install --version ${{ matrix.swift }}
51+ # https://github.com/swiftlang/swift-driver/pull/1879
52+ ANDROID_NDK_ROOT="" skip android build --build-tests
0 commit comments