Skip to content

Commit 1fbcb56

Browse files
committed
v1.0: initial public release
1 parent 81bbc9d commit 1fbcb56

File tree

1 file changed

+15
-33
lines changed

1 file changed

+15
-33
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,63 @@
11
# .github/workflows/ci.yml
22
name: CI
3-
43
on: [push, pull_request]
54

65
jobs:
7-
ios-build-and-tests:
8-
# macOS 15 runners include Xcode 16.x (iOS 18 / watchOS 11 SDKs)
6+
ios-build:
97
runs-on: macos-15
108
steps:
119
- uses: actions/checkout@v4
12-
1310
- name: Select Xcode 16.x
1411
uses: maxim-lobanov/setup-xcode@v1
1512
with:
1613
xcode-version: "16.x"
17-
18-
- name: Pick iPhone simulator
19-
id: pick-sim
20-
shell: bash
21-
run: |
22-
NAME="$(xcrun simctl list devices available | sed -nE 's/.*(iPhone [^()]+) \(.*/\1/p' | head -n 1)"
23-
if [[ -z "$NAME" ]]; then
24-
echo "No iPhone simulator found" >&2
25-
exit 1
26-
fi
27-
echo "name=$NAME" >> "$GITHUB_OUTPUT"
28-
echo "Using simulator: $NAME"
29-
30-
- name: Build + test iOS (no code signing)
14+
- name: Show schemes (debug aid)
15+
run: xcodebuild -project SleepTrigger.xcodeproj -list
16+
- name: Build iOS (no signing, no tests)
3117
run: |
18+
set -o pipefail
3219
xcodebuild \
3320
-project SleepTrigger.xcodeproj \
3421
-scheme "SleepTrigger" \
3522
-sdk iphonesimulator \
36-
-destination "platform=iOS Simulator,name=${{ steps.pick-sim.outputs.name }}" \
23+
-destination "platform=iOS Simulator,name=iPhone 15" \
3724
CODE_SIGNING_ALLOWED=NO \
38-
clean build test
39-
env:
40-
NSUnbufferedIO: "YES"
25+
clean build
4126
42-
macos-build-and-tests:
27+
macos-build:
4328
runs-on: macos-15
4429
steps:
4530
- uses: actions/checkout@v4
4631
- name: Select Xcode 16.x
4732
uses: maxim-lobanov/setup-xcode@v1
4833
with:
4934
xcode-version: "16.x"
50-
51-
- name: Build + test macOS (no code signing)
35+
- name: Show schemes (debug aid)
36+
run: xcodebuild -project SleepTrigger.xcodeproj -list
37+
- name: Build macOS (no signing, no tests)
5238
run: |
39+
set -o pipefail
5340
xcodebuild \
5441
-project SleepTrigger.xcodeproj \
5542
-scheme "SleepTriggerMac" \
5643
-destination "platform=macOS" \
5744
CODE_SIGNING_ALLOWED=NO \
58-
clean build test
59-
env:
60-
NSUnbufferedIO: "YES"
45+
clean build
6146
6247
watchos-build:
63-
# Build only (watchOS UI tests aren’t supported on CI by default)
6448
runs-on: macos-15
6549
steps:
6650
- uses: actions/checkout@v4
6751
- name: Select Xcode 16.x
6852
uses: maxim-lobanov/setup-xcode@v1
6953
with:
7054
xcode-version: "16.x"
71-
72-
- name: Build watchOS app (no code signing)
55+
- name: Build watchOS (no signing, no tests)
7356
run: |
57+
set -o pipefail
7458
xcodebuild \
7559
-project SleepTrigger.xcodeproj \
7660
-scheme "SleepTriggerWatchOS Watch App" \
7761
-destination "generic/platform=watchOS Simulator" \
7862
CODE_SIGNING_ALLOWED=NO \
7963
clean build
80-
env:
81-
NSUnbufferedIO: "YES"

0 commit comments

Comments
 (0)