-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
38 lines (31 loc) · 871 Bytes
/
Makefile
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
PLATFORM_IOS = iOS Simulator,name=iPhone 16
PLATFORM_MACOS = macOS
PLATFORM_TVOS = tvOS Simulator,name=Apple TV
PLATFORM_VISIONOS = visionOS Simulator,name=Apple Vision Pro # Temporarily disabling the visionOS simulator in GitHub Actions.
PLATFORM_WATCHOS = watchOS Simulator,name=Apple Watch Series 10 (46mm)
CONFIG = debug
default: test
build-all:
CONFIG=debug make build
CONFIG=release make build
build:
for platform in \
"$(PLATFORM_IOS)" \
"$(PLATFORM_MACOS)" \
"$(PLATFORM_TVOS)" \
"$(PLATFORM_WATCHOS)"; \
do \
xcodebuild clean build \
-scheme OneWay \
-configuration $(CONFIG) \
-destination platform="$$platform" || exit 1; \
done;
test:
swift package clean
swift test
test-swift6:
swift package clean
swift test -Xswiftc -swift-version -Xswiftc 6
build-swift:
swift build
.PHONY: build-all build test test-swift6 build-swift