Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ jobs:
- name: Build simulator zips (arm64 + x86_64)
run: make sim-zip

- name: Upload unsigned IPA artifact
- name: Upload IPA artifacts
uses: actions/upload-artifact@v5
if: success()
with:
name: devicekit-ios-unsigned-ipa
path: build/export/*-unsigned.ipa
name: devicekit-ios-ipa
path: build/export/*.ipa
retention-days: 4

- name: Upload simulator zip artifacts
Expand All @@ -59,10 +59,10 @@ jobs:
attestations: write

steps:
- name: Download IPA artifact
- name: Download IPA artifacts
uses: actions/download-artifact@v5
with:
name: devicekit-ios-unsigned-ipa
name: devicekit-ios-ipa

- name: Download simulator zip artifacts
uses: actions/download-artifact@v5
Expand All @@ -73,7 +73,7 @@ jobs:
uses: actions/attest-build-provenance@v2
with:
subject-path: |
*-unsigned.ipa
*.ipa
*-Sim-*.zip

- name: Upload to GitHub Release
Expand All @@ -83,5 +83,5 @@ jobs:
with:
name: Version ${{ github.ref_name }}
files: |
*-unsigned.ipa
*.ipa
*-Sim-*.zip
15 changes: 8 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ debug:
release:
@$(MAKE) build CONFIGURATION=Release

# Create unsigned IPA with host app and UITests runner (for later resigning)
# Create unsigned IPA with XCUITest runner for real iOS devices
ipa-unsigned:
@echo "Building unsigned app and test runner for arm64 iOS devices..."
@echo "Building unsigned test runner for arm64 iOS devices..."
xcodebuild build-for-testing \
-project $(PROJECT) \
-scheme $(SCHEME) \
Expand All @@ -40,14 +40,15 @@ ipa-unsigned:
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO | xcbeautify
@echo "Packaging unsigned IPA..."
@scripts/patch-runner.sh "$(BUILD_DIR)/Build/Products/$(CONFIGURATION)-iphoneos"
@echo "Packaging runner IPA..."
@rm -rf $(EXPORT_PATH)/Payload
@rm -f $(EXPORT_PATH)/$(SCHEME)-runner.ipa
@mkdir -p $(EXPORT_PATH)/Payload
@cp -r $(BUILD_DIR)/Build/Products/$(CONFIGURATION)-iphoneos/$(SCHEME).app $(EXPORT_PATH)/Payload/
@cp -r "$(BUILD_DIR)/Build/Products/$(CONFIGURATION)-iphoneos/$(SCHEME)UITests-Runner.app" $(EXPORT_PATH)/Payload/
@scripts/patch-runner.sh "$(BUILD_DIR)/Build/Products/$(CONFIGURATION)-iphoneos" "$(EXPORT_PATH)/Payload"
@cd $(EXPORT_PATH) && zip -r $(SCHEME)-unsigned.ipa Payload
@cd $(EXPORT_PATH) && zip -r $(SCHEME)-runner.ipa Payload
@rm -rf $(EXPORT_PATH)/Payload
@echo "Unsigned IPA created at: $(EXPORT_PATH)/$(SCHEME)-unsigned.ipa"
@echo "Runner IPA created at: $(EXPORT_PATH)/$(SCHEME)-runner.ipa"

# Build XCUITest runner for iOS Simulator (arm64 — Apple Silicon)
sim-zip-arm64:
Expand Down
Loading