-
-
Notifications
You must be signed in to change notification settings - Fork 33
58 lines (54 loc) · 1.43 KB
/
ci.yml
File metadata and controls
58 lines (54 loc) · 1.43 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
pull_request:
branches:
- '*'
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test-package:
name: Test package (${{ matrix.platform }})
runs-on: macos-26
strategy:
fail-fast: false
matrix:
include:
- platform: iOS
sim_platform: iOS Simulator
device_name: iPhone
- platform: macOS
sim_platform: macOS
device_name: My Mac
- platform: watchOS
sim_platform: watchOS Simulator
device_name: Watch
- platform: xrOS
sim_platform: visionOS Simulator
device_name: Apple Vision Pro
steps:
- uses: actions/checkout@v4
- name: Test VRMKit
run: |
set -o pipefail
if [ "${{ matrix.platform }}" = "macOS" ]; then
swift test | xcbeautify
else
make test-package-platform \
SIM_PLATFORM="${{ matrix.sim_platform }}" \
RUNTIME_PLATFORM="${{ matrix.platform }}" \
DEVICE_NAME="${{ matrix.device_name }}" | xcbeautify
fi
build-examples:
name: Build examples (iOS/visionOS/WatchOS/macOS)
runs-on: macos-26
steps:
- uses: actions/checkout@v4
- name: Build All Examples
run: |
set -o pipefail
make build-examples | xcbeautify