-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
36 lines (30 loc) · 1.79 KB
/
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
SHELL = sh
.ONESHELL:
.SHELLFLAGS = -e
clean:
swift package reset
build:
swift build
ci_build:
# build debug and release for all supported platforms
# iOS
xcodebuild build -workspace MQ.xcworkspace -scheme MQ -destination generic/platform=iOS -configuration debug
xcodebuild build -workspace MQ.xcworkspace -scheme MQ -destination generic/platform=iOS -configuration release
# macOS
xcodebuild build -workspace MQ.xcworkspace -scheme MQ -destination platform="macOS" -configuration debug
xcodebuild build -workspace MQ.xcworkspace -scheme MQ -destination platform="macOS" -configuration release
# Catalyst
xcodebuild build -workspace MQ.xcworkspace -scheme MQ -destination platform="macOS,variant=Mac Catalyst" -configuration debug
xcodebuild build -workspace MQ.xcworkspace -scheme MQ -destination platform="macOS,variant=Mac Catalyst" -configuration release
# watchOS
xcodebuild build -workspace MQ.xcworkspace -scheme MQ -destination generic/platform=watchOS -configuration debug
xcodebuild build -workspace MQ.xcworkspace -scheme MQ -destination generic/platform=watchOS -configuration release
# tvOS
xcodebuild build -workspace MQ.xcworkspace -scheme MQ -destination generic/platform=tvOS -configuration debug
xcodebuild build -workspace MQ.xcworkspace -scheme MQ -destination generic/platform=tvOS -configuration release
test:
swift test
lint:
swift run --configuration release --package-path ./FormatTool --scratch-path ./.toolsCache -- swift-format lint --configuration ./FormatTool/formatterConfig.json --parallel --recursive ./Package.swift ./Sources ./Tests
format:
swift run --configuration release --package-path ./FormatTool --scratch-path ./.toolsCache -- swift-format format --configuration ./FormatTool/formatterConfig.json --parallel --recursive ./Package.swift ./Sources ./Tests --in-place