Skip to content

Commit 96ce68d

Browse files
authored
Add visionOS CI (#2747)
* Add visionOS CI * wip * wip
1 parent 83ec5d3 commit 96ce68d

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

.github/package.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 11 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ concurrency:
1616
jobs:
1717
library-swift-latest:
1818
name: Library
19-
runs-on: macos-13
19+
runs-on: macos-14
2020
strategy:
2121
matrix:
2222
config:
@@ -26,6 +26,8 @@ jobs:
2626
- uses: actions/checkout@v4
2727
- name: Select Xcode 15.2
2828
run: sudo xcode-select -s /Applications/Xcode_15.2.app
29+
- name: Build ${{ matrix.config }}
30+
run: make CONFIG=${{ matrix.config }} build-all-platforms
2931
- name: Run ${{ matrix.config }} tests
3032
run: make CONFIG=${{ matrix.config }} test-library
3133

Makefile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ PLATFORM_IOS = iOS Simulator,id=$(call udid_for,iOS 17.2,iPhone \d\+ Pro [^M])
33
PLATFORM_MACOS = macOS
44
PLATFORM_MAC_CATALYST = macOS,variant=Mac Catalyst
55
PLATFORM_TVOS = tvOS Simulator,id=$(call udid_for,tvOS 17.2,TV)
6+
PLATFORM_VISIONOS = visionOS Simulator,id=$(call udid_for,visionOS 1.0,Vision)
67
PLATFORM_WATCHOS = watchOS Simulator,id=$(call udid_for,watchOS 10.2,Watch)
78

89
default: test-all
@@ -11,8 +12,18 @@ test-all: test-examples
1112
$(MAKE) CONFIG=debug test-library
1213
$(MAKE) CONFIG=release test-library
1314

15+
build-all-platforms:
16+
for platform in "iOS" "macOS" "macOS,variant=Mac Catalyst" "tvOS" "visionOS" "watchOS"; do \
17+
xcodebuild \
18+
-skipMacroValidation \
19+
-configuration $(CONFIG) \
20+
-workspace .github/package.xcworkspace \
21+
-scheme ComposableArchitecture \
22+
-destination generic/platform="$$platform" || exit 1; \
23+
done;
24+
1425
test-library:
15-
for platform in "$(PLATFORM_IOS)" "$(PLATFORM_MACOS)" "$(PLATFORM_MAC_CATALYST)" "$(PLATFORM_TVOS)" "$(PLATFORM_WATCHOS)"; do \
26+
for platform in "$(PLATFORM_IOS)" "$(PLATFORM_MACOS)"; do \
1627
xcodebuild test \
1728
-skipMacroValidation \
1829
-configuration $(CONFIG) \

0 commit comments

Comments
 (0)