-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (60 loc) · 1.71 KB
/
Copy pathci.yml
File metadata and controls
70 lines (60 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
59
60
61
62
63
64
65
66
67
68
69
70
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
build-and-test:
name: Build & test (${{ matrix.os }} / ${{ matrix.arch }})
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include:
- os: macos-15
arch: arm64
steps:
- name: Check out repository
uses: actions/checkout@v7
timeout-minutes: 5
- name: Select latest stable Xcode
uses: maxim-lobanov/setup-xcode@v1
timeout-minutes: 5
with:
xcode-version: latest-stable
- name: Install XcodeGen
timeout-minutes: 5
run: brew install xcodegen
- name: Generate Xcode project
timeout-minutes: 5
run: xcodegen generate
- name: Build (no code signing)
timeout-minutes: 15
run: |
xcodebuild build \
-project PowerSnek.xcodeproj \
-scheme PowerSnek \
-configuration Debug \
-derivedDataPath build \
CODE_SIGNING_ALLOWED=NO
- name: Test (PowerSnekKit unit tests)
timeout-minutes: 15
run: |
xcodebuild test \
-project PowerSnek.xcodeproj \
-scheme PowerSnek \
-destination 'platform=macOS' \
-resultBundlePath build/PowerSnek.xcresult \
CODE_SIGNING_ALLOWED=NO
- name: Upload test result bundle on failure
if: failure()
uses: actions/upload-artifact@v7
with:
name: xcresult-${{ matrix.os }}-${{ matrix.arch }}
path: build/PowerSnek.xcresult
if-no-files-found: ignore
retention-days: 14