-
Notifications
You must be signed in to change notification settings - Fork 1
91 lines (75 loc) · 2.49 KB
/
Copy pathci.yml
File metadata and controls
91 lines (75 loc) · 2.49 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: Build & Test
on:
pull_request:
branches:
- main
merge_group:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
macos-unit-tests:
name: macOS Build & Test
runs-on: xcode-27
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Install Metal toolchain
run: xcodebuild -downloadComponent MetalToolchain
- name: Run unit tests (macOS)
run: |
xcodebuild test \
-project ComputerSolitaire.xcodeproj \
-scheme ComputerSolitaire \
-configuration Debug \
-destination "platform=macOS" \
-derivedDataPath "$RUNNER_TEMP/DerivedData" \
-resultBundlePath "$RUNNER_TEMP/ComputerSolitaireTests.xcresult" \
CODE_SIGNING_ALLOWED=NO \
CODE_SIGNING_REQUIRED=NO
- name: Upload test result bundle on failure
if: failure()
uses: actions/upload-artifact@v7
with:
name: macos-test-results
path: ${{ runner.temp }}/ComputerSolitaireTests.xcresult
ios-build:
name: iOS Build
runs-on: xcode-27
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Install Metal toolchain
run: xcodebuild -downloadComponent MetalToolchain
- name: Build app (iOS Simulator)
run: |
xcodebuild build \
-project ComputerSolitaire.xcodeproj \
-scheme ComputerSolitaire \
-configuration Debug \
-destination "generic/platform=iOS Simulator" \
-derivedDataPath "$RUNNER_TEMP/DerivedData" \
CODE_SIGNING_ALLOWED=NO \
CODE_SIGNING_REQUIRED=NO
mas-build:
name: Mac App Store Build
runs-on: xcode-27
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Install Metal toolchain
run: xcodebuild -downloadComponent MetalToolchain
# Keeps the Sparkle-free target compiling: this build has no Sparkle
# package linked, so every canImport(Sparkle) guard must hold.
- name: Build app (Mac App Store target)
run: |
xcodebuild build \
-project ComputerSolitaire.xcodeproj \
-scheme ComputerSolitaireAppStore \
-configuration Debug \
-destination "platform=macOS" \
-derivedDataPath "$RUNNER_TEMP/DerivedData" \
CODE_SIGNING_ALLOWED=NO \
CODE_SIGNING_REQUIRED=NO