-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
24 lines (22 loc) · 887 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
.PHONY: build
build:
# https://developer.apple.com/documentation/xcode/building-swift-packages-or-apps-that-use-them-in-continuous-integration-workflows
# https://stackoverflow.com/questions/4969932/separate-build-directory-using-xcodebuild
# https://forums.swift.org/t/swiftpm-with-git-lfs/42396/4
GIT_LFS_SKIP_DOWNLOAD_ERRORS=1 \
xcodebuild \
-disableAutomaticPackageResolution \
-clonedSourcePackagesDirPath .swiftpm-packages \
-destination generic/platform=iOS \
-scheme "Foxglove Bridge" \
SYMROOT="$(PWD)"/build \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
-configuration Release \
clean build analyze
.PHONY: lint-ci
lint-ci:
docker run -t --platform linux/amd64 --rm -v "$(PWD)":/work -w /work ghcr.io/realm/swiftlint:0.53.0
.PHONY: format-ci
format-ci:
docker run -t --rm -v "$(PWD)":/work ghcr.io/nicklockwood/swiftformat:0.52.8 --lint /work