Skip to content

Commit 59b00df

Browse files
authored
Fix CI (#159)
* Fix CI * wip * wip * wip
1 parent 602e9c1 commit 59b00df

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,17 @@ jobs:
1919
strategy:
2020
matrix:
2121
xcode: ['16.4']
22-
config: ['debug', 'release']
22+
config:
23+
- debug
24+
# - release
2325
runs-on: macos-15
2426
steps:
2527
- uses: actions/checkout@v4
2628
- name: Select Xcode ${{ matrix.xcode }}
2729
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
30+
- name: List available devices
31+
run: xcrun simctl list devices available
32+
# NB: GitHub CI only contains newer runtimes
2833
# - name: Run ${{ matrix.config }} tests
2934
# run: swift test -c ${{ matrix.config }}
3035
- name: Run compatibility tests

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
PLATFORM_IOS = iOS Simulator,id=$(call udid_for,iOS 18.5,iPhone \d\+ Pro [^M])
22

3-
test-compatibility:
3+
warm-simulator:
4+
@test "$(PLATFORM_IOS)" != "" \
5+
&& xcrun simctl boot $(PLATFORM_ID) \
6+
&& open -a Simulator --args -CurrentDeviceUDID $(PLATFORM_IOS) \
7+
|| exit 0
8+
9+
test-compatibility: warm-simulator
410
xcodebuild \
511
-skipMacroValidation \
612
-project Example/Example.xcodeproj \
@@ -14,7 +20,7 @@ format:
1420
-not -path '*/.*' -print0 \
1521
| xargs -0 swift format --ignore-unparsable-files --in-place
1622

17-
.PHONY: format test-compatibility
23+
.PHONY: format test-compatibility warm-simulator
1824

1925
define udid_for
2026
$(shell xcrun simctl list devices available '$(1)' | grep '$(2)' | sort -r | head -1 | awk -F '[()]' '{ print $$(NF-3) }')

0 commit comments

Comments
 (0)