mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
- CI: Fixes to make build re-useable
This commit is contained in:
@@ -252,7 +252,7 @@ jobs:
|
|||||||
- name: Start Recording UI tests (if DEBUG_RECORD_TESTS is set to 1)
|
- name: Start Recording UI tests (if DEBUG_RECORD_TESTS is set to 1)
|
||||||
if: ${{ vars.DEBUG_RECORD_TESTS == '1' }}
|
if: ${{ vars.DEBUG_RECORD_TESTS == '1' }}
|
||||||
run: |
|
run: |
|
||||||
nohup xcrun simctl io booted recordVideo test-recording.mp4 </dev/null > test-recording.log 2>&1 &
|
nohup xcrun simctl io booted recordVideo -f test-recording.mp4 --codec h264 </dev/null > test-recording.log 2>&1 &
|
||||||
RECORD_PID=$!
|
RECORD_PID=$!
|
||||||
echo "RECORD_PID=$RECORD_PID" >> $GITHUB_ENV
|
echo "RECORD_PID=$RECORD_PID" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
|||||||
31
Makefile
31
Makefile
@@ -169,6 +169,8 @@ MARKETING_VERSION ?=
|
|||||||
BUNDLE_ID_SUFFIX ?=
|
BUNDLE_ID_SUFFIX ?=
|
||||||
# Common build settings for xcodebuild
|
# Common build settings for xcodebuild
|
||||||
COMMON_BUILD_SETTINGS = \
|
COMMON_BUILD_SETTINGS = \
|
||||||
|
-workspace AltStore.xcworkspace \
|
||||||
|
-scheme SideStore \
|
||||||
-sdk iphoneos \
|
-sdk iphoneos \
|
||||||
-configuration $(BUILD_CONFIG) \
|
-configuration $(BUILD_CONFIG) \
|
||||||
CODE_SIGNING_REQUIRED=NO \
|
CODE_SIGNING_REQUIRED=NO \
|
||||||
@@ -190,11 +192,22 @@ endif
|
|||||||
build:
|
build:
|
||||||
@echo ">>>>>>>>> BUILD_CONFIG is set to '$(BUILD_CONFIG)', Building for $(BUILD_CONFIG) mode! <<<<<<<<<<"
|
@echo ">>>>>>>>> BUILD_CONFIG is set to '$(BUILD_CONFIG)', Building for $(BUILD_CONFIG) mode! <<<<<<<<<<"
|
||||||
@echo ""
|
@echo ""
|
||||||
@xcodebuild -workspace AltStore.xcworkspace \
|
@xcodebuild archive -archivePath ./SideStore \
|
||||||
-scheme SideStore \
|
|
||||||
archive -archivePath ./SideStore \
|
|
||||||
$(COMMON_BUILD_SETTINGS)
|
$(COMMON_BUILD_SETTINGS)
|
||||||
|
|
||||||
|
build-and-test:
|
||||||
|
@rm -rf build/tests/test-results.xcresult
|
||||||
|
@echo ">>>>>>>>> BUILD_CONFIG is set to '$(BUILD_CONFIG)', Building for $(BUILD_CONFIG) mode! <<<<<<<<<<"
|
||||||
|
@echo ""
|
||||||
|
@echo "Performing a build and running tests..."
|
||||||
|
@xcodebuild test \
|
||||||
|
-destination 'platform=iOS Simulator,name=iPhone 16 Pro,OS=18.2' \
|
||||||
|
-resultBundlePath build/tests/test-results.xcresult \
|
||||||
|
$(COMMON_BUILD_SETTINGS)
|
||||||
|
|
||||||
|
# code cov probably cause full recompilation of tests even if archive target was just invoked before tests
|
||||||
|
# -enableCodeCoverage YES \
|
||||||
|
|
||||||
boot-sim:
|
boot-sim:
|
||||||
@if xcrun simctl list devices "iPhone 16 Pro" | grep -q "Booted"; then \
|
@if xcrun simctl list devices "iPhone 16 Pro" | grep -q "Booted"; then \
|
||||||
echo "Simulator 'iPhone 16 Pro' is already booted."; \
|
echo "Simulator 'iPhone 16 Pro' is already booted."; \
|
||||||
@@ -210,18 +223,6 @@ boot-sim:
|
|||||||
fi \
|
fi \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
build-and-test:
|
|
||||||
@rm -rf build/tests/test-results.xcresult
|
|
||||||
@echo ">>>>>>>>> BUILD_CONFIG is set to '$(BUILD_CONFIG)', Building for $(BUILD_CONFIG) mode! <<<<<<<<<<"
|
|
||||||
@echo ""
|
|
||||||
@echo "Performing a build and running tests..."
|
|
||||||
@xcodebuild test -workspace AltStore.xcworkspace \
|
|
||||||
-scheme SideStore \
|
|
||||||
-destination 'platform=iOS Simulator,name=iPhone 16 Pro,OS=18.2' \
|
|
||||||
-enableCodeCoverage YES \
|
|
||||||
-resultBundlePath build/tests/test-results.xcresult \
|
|
||||||
$(COMMON_BUILD_SETTINGS)
|
|
||||||
|
|
||||||
clean-build:
|
clean-build:
|
||||||
@echo "Cleaning build artifacts..."
|
@echo "Cleaning build artifacts..."
|
||||||
@xcodebuild clean -workspace AltStore.xcworkspace -scheme SideStore
|
@xcodebuild clean -workspace AltStore.xcworkspace -scheme SideStore
|
||||||
|
|||||||
Reference in New Issue
Block a user