-
Notifications
You must be signed in to change notification settings - Fork 12
40 lines (37 loc) · 985 Bytes
/
ci.yml
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
name: CI
on:
push:
branches: [master]
paths:
- "**.swift"
- "**.podspec"
- ".github/workflows/*"
pull_request:
branches: [master]
paths:
- "**.swift"
- "**.podspec"
- ".github/workflows/*"
jobs:
build-mac:
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- name: Build
run: swift build --build-tests
- name: Run tests
run: swift test --skip-build
- name: Pod lint
run: pod lib lint --quick
- name: Verify Carthage
run: carthage build --no-skip-current --verbose --use-xcframeworks --platform macOS
build-ios:
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- name: Build
run: |
swift build -Xswiftc "-sdk" \
-Xswiftc `xcrun --sdk iphonesimulator --show-sdk-path` \
-Xswiftc "-target" \
-Xswiftc "x86_64-apple-ios`xcrun --show-sdk-version --sdk iphonesimulator`-simulator"