-
-
Notifications
You must be signed in to change notification settings - Fork 250
58 lines (51 loc) · 1.71 KB
/
ci.yml
File metadata and controls
58 lines (51 loc) · 1.71 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
55
56
57
58
name: CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ develop ]
jobs:
build:
# https://github.com/actions/runner-images/tree/main/images/macos
runs-on: macos-26
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Select Xcode 26.0
run: |
ls -1 /Applications | grep -E '^Xcode_26\.' || true
sudo xcode-select -s "/Applications/Xcode_26.4.app"
xcodebuild -version
xcrun simctl list runtimes
- name: Create Debug.xcconfig
run: cp ./BuildConfiguration/Debug.template.xcconfig ./BuildConfiguration/Debug.xcconfig
- name: Resolve SPM dependencies
run: xcodebuild -resolvePackageDependencies
- name: Reset Simulator
run: |
set -x
export DEVELOPER_DIR="/Applications/Xcode_26.4.app"
xcrun simctl shutdown all || true
xcrun simctl erase all || true
launchctl kickstart -k gui/$UID/com.apple.CoreSimulator.CoreSimulatorService || true
xcrun simctl list devices || true
- name: Build for testing
run: |
xcodebuild \
-scheme BookPlayer \
-configuration Debug \
-destination "platform=iOS Simulator,name=iPhone 17" \
build-for-testing
- name: Run unit tests
timeout-minutes: 12
env:
NSUnbufferedIO: "YES"
run: |
xcodebuild \
-scheme BookPlayer \
-configuration Debug \
-testPlan "Unit Tests" \
-only-testing:BookPlayerTests \
-destination "platform=iOS Simulator,name=iPhone 17" \
-destination-timeout 120 \
test-without-building