-
Notifications
You must be signed in to change notification settings - Fork 11
54 lines (51 loc) · 1.53 KB
/
swift.yml
File metadata and controls
54 lines (51 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Swift
on: [push]
jobs:
macos:
name: macOS
runs-on: macos-15
strategy:
matrix:
config: ["debug", "release"]
options: ["", "SWIFT_BUILD_DYNAMIC_LIBRARY=1"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Swift Version
run: swift --version
- name: Build
run: ${{ matrix.options }} swift build -c ${{ matrix.config }}
- name: Test
run: ${{ matrix.options }} swift test -c ${{ matrix.config }}
linux:
name: Linux
strategy:
matrix:
container: ["swift:6.0.3", "swift:6.1.2", "swift:6.2.3"]
config: ["debug", "release"]
options: ["", "SWIFT_BUILD_DYNAMIC_LIBRARY=1"]
runs-on: ubuntu-latest
container: ${{ matrix.container }}-jammy
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Swift Version
run: swift --version
- name: Build
run: ${{ matrix.options }} swift build -c ${{ matrix.config }}
android-arm:
name: Android
strategy:
fail-fast: false
matrix:
swift: ['6.2.3', 'nightly-6.3']
arch: ['aarch64', 'x86_64', 'armv7']
runs-on: macos-15
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: "Build Swift Package for Android"
run: |
brew install skiptools/skip/skip || (brew update && brew install skiptools/skip/skip)
skip android sdk install --version ${{ matrix.swift }}
ANDROID_NDK_ROOT="" skip android build --arch ${{ matrix.arch }}