File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Swift
2+ on : [push]
3+ jobs :
4+
5+ macos :
6+ name : macOS
7+ runs-on : macos-15
8+ strategy :
9+ matrix :
10+ config : ["debug", "release"]
11+ options : ["", "SWIFT_BUILD_DYNAMIC_LIBRARY=1"]
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v4
15+ - name : Swift Version
16+ run : swift --version
17+ - name : Build
18+ run : ${{ matrix.options }} swift build -c ${{ matrix.config }}
19+ - name : Test
20+ run : ${{ matrix.options }} swift test -c ${{ matrix.config }}
21+
22+ linux :
23+ name : Linux
24+ strategy :
25+ matrix :
26+ container : ["swift:6.0.3", "swift:6.1.2"]
27+ config : ["debug", "release"]
28+ options : ["", "SWIFT_BUILD_DYNAMIC_LIBRARY=1"]
29+ runs-on : ubuntu-latest
30+ container : ${{ matrix.container }}-jammy
31+ steps :
32+ - name : Checkout
33+ uses : actions/checkout@v4
34+ - name : Swift Version
35+ 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 }}
40+
41+ android :
42+ name : Android
43+ strategy :
44+ fail-fast : false
45+ matrix :
46+ swift : ['6.1', 'nightly-6.2']
47+ arch : ["aarch64", "x86_64"]
48+ runs-on : macos-15
49+ timeout-minutes : 30
50+ steps :
51+ - uses : actions/checkout@v4
52+ - name : " Build Swift Package for Android"
53+ run : |
54+ brew install skiptools/skip/skip || (brew update && brew install skiptools/skip/skip)
55+ skip android sdk install --version ${{ matrix.swift }}
56+ ANDROID_NDK_ROOT="" skip android build --arch ${{ matrix.arch }}
You can’t perform that action at this time.
0 commit comments