-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
80 lines (80 loc) · 2.24 KB
/
build.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Build and test
on: [push, pull_request]
env:
IOS_SIMULATOR: "iPhone 15"
IOS_VERSION: "17.2"
jobs:
build:
runs-on: macos-14
steps:
- uses: actions/checkout@v2
- name: "Select Xcode"
# Currently only works with Xcode 14.2:
# https://github.com/CocoaPods/CocoaPods/issues/11839
run: |
xcode-select -p
sudo xcode-select -s /Applications/Xcode_15.0.1.app/Contents/Developer
- name: "Lint"
run: make lint
- name: "Run tests (PACKAGE_MANAGER_COMMAND: test)"
env:
PACKAGE_MANAGER_COMMAND: test -Xswiftc -warnings-as-errors
run: ./run-tests.sh
- name: "Run tests (SPM integration test)"
env:
SPM: run
run: ./run-tests.sh
- name: "Run tests (BUILD_SCHEME: SQLite iOS)"
env:
BUILD_SCHEME: SQLite iOS
run: ./run-tests.sh
- name: "Run tests (BUILD_SCHEME: SQLite Mac)"
env:
BUILD_SCHEME: SQLite Mac
run: ./run-tests.sh
- name: "Run tests (VALIDATOR_SUBSPEC: none)"
env:
VALIDATOR_SUBSPEC: none
run: ./run-tests.sh
- name: "Run tests (VALIDATOR_SUBSPEC: standard)"
env:
VALIDATOR_SUBSPEC: standard
run: ./run-tests.sh
- name: "Run tests (VALIDATOR_SUBSPEC: standalone)"
env:
VALIDATOR_SUBSPEC: standalone
run: ./run-tests.sh
- name: "Run tests (VALIDATOR_SUBSPEC: SQLCipher)"
env:
VALIDATOR_SUBSPEC: SQLCipher
run: ./run-tests.sh
- name: "Run tests (CARTHAGE_PLATFORM: iOS)"
env:
CARTHAGE_PLATFORM: iOS
run: ./run-tests.sh
- name: "Run tests (CARTHAGE_PLATFORM: Mac)"
env:
CARTHAGE_PLATFORM: Mac
run: ./run-tests.sh
- name: "Run tests (CARTHAGE_PLATFORM: watchOS)"
env:
CARTHAGE_PLATFORM: watchOS
run: ./run-tests.sh
- name: "Run tests (CARTHAGE_PLATFORM: tvOS)"
env:
CARTHAGE_PLATFORM: tvOS
run: ./run-tests.sh
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install
run: |
sudo apt-get update -qq
sudo apt-get install -y libsqlite3-dev
- name: Test
run: swift test
- name: "Run tests (SPM integration test)"
env:
SPM: run
run: ./run-tests.sh