-
Notifications
You must be signed in to change notification settings - Fork 76
/
Makefile
62 lines (45 loc) · 1.94 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
MISE=$(HOME)/.local/bin/mise
TUIST=$(MISE) x tuist -- tuist
all: bootstrap project_file
bootstrap:
command -v $(MISE) >/dev/null 2>&1 || curl https://mise.jdx.dev/install.sh | sh
$(MISE) install
project_file: secrets
$(TUIST) install
$(TUIST) generate --no-open
update: secrets
$(TUIST) install --update
$(TUIST) generate --no-open
appstore: secrets
TUIST_IS_APP_STORE=1 $(TUIST) install
TUIST_IS_APP_STORE=1 $(TUIST) generate --no-open
project_cache_warmup:
$(TUIST) cache Common AudioProcessing WhisperBoardKit --external-only
$(TUIST) generate -n
build_dev_debug:
$(TUIST) build --configuration Debug --build-output-path .build/ WhisperBoardDev
build_dev_release:
$(TUIST) build --configuration Release --build-output-path .build/ WhisperBoardDev
format:
$(MISE) x swiftlint -- swiftlint lint --force-exclude --fix .
$(MISE) x swiftformat -- swiftformat . --config .swiftformat
secrets:
sh ./ci_scripts/secrets.sh
build_dev_server:
xcode-build-server config -workspace WhisperBoard.xcworkspace -scheme WhisperBoardDev || echo "consult https://github.com/SolaWing/xcode-build-server for vscode support"
build_server:
xcode-build-server config -workspace WhisperBoard.xcworkspace -scheme WhisperBoard || echo "consult https://github.com/SolaWing/xcode-build-server for vscode support"
analyze:
sh ./ci_scripts/cpd_run.sh && echo "CPD done"
periphery scan > periphery.log && echo "Periphery done"
xcodebuild -workspace WhisperBoard.xcworkspace -scheme WhisperBoardDev -configuration Debug build CODE_SIGNING_ALLOWED="NO" ENABLE_BITCODE="NO" > xcodebuild.log && echo "Xcodebuild done"
swiftlint analyze --compiler-log-path xcodebuild.log > swiftlint_analyze.log && echo "Swiftlint done"
clear_analyze:
rm -f periphery.log
rm -f xcodebuild.log
rm -f swiftlint_analyze.log
rm -f cpd-output.xml
clean: clear_analyze
rm -rf build
$(TUIST) clean
.SILENT: all project_file update hot appstore hot_appstore build_debug build_release format secrets