-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (36 loc) · 1.29 KB
/
Copy pathbuild.yml
File metadata and controls
40 lines (36 loc) · 1.29 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
name: Build & Test
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: macos-15
timeout-minutes: 30
steps:
- uses: actions/checkout@v5
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- run: brew install xcodegen
- run: xcodegen generate
- name: Check shell scripts and whitespace
run: |
bash -n install.sh scripts/package_release.sh scripts/fetch_release_model.sh
git diff --check
- name: Build Apple Silicon release
run: xcodebuild build -project Isolate.xcodeproj -scheme Isolate -configuration Release -destination 'platform=macOS,arch=arm64' -derivedDataPath build/DerivedData CODE_SIGNING_ALLOWED=NO
- name: Run unit and audio regression tests
run: xcodebuild test -project Isolate.xcodeproj -scheme Isolate -destination 'platform=macOS,arch=arm64' -derivedDataPath build/DerivedData -only-testing:IsolateTests CODE_SIGNING_ALLOWED=NO
- name: Preserve test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: build/DerivedData/Logs/Test/*.xcresult