-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.23 KB
/
Copy pathci.yml
File metadata and controls
37 lines (34 loc) · 1.23 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
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
name: SwiftPM tests
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: Guard forbidden runtime dependencies
run: scripts/guard_no_rust_uniffi.sh
- name: Resolve dependencies
run: swift package resolve
- name: Run tests
run: swift test
- name: Validate release gate shape
run: LIVEKIT_NATIVE_RELEASE_RUN_TESTS=0 LIVEKIT_NATIVE_RELEASE_RUN_BENCHMARKS=0 LIVEKIT_NATIVE_RELEASE_RUN_SIZE_GATE=0 scripts/check_release_readiness.sh
- name: Benchmark smoke
run: swift run -c release LiveKitNativeBenchmarks --samples 30 --warmup 5 --ops-per-sample 50
- name: Size gate
run: scripts/check_release_size.sh
apple-builds:
name: Apple platform builds
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: Build macOS
run: xcodebuild build -scheme LiveKitNative -destination 'generic/platform=macOS'
- name: Build iOS simulator
run: xcodebuild build -scheme LiveKitNative -destination 'generic/platform=iOS Simulator'
- name: DocC
run: xcodebuild docbuild -scheme LiveKitNative -destination 'generic/platform=macOS'