-
Notifications
You must be signed in to change notification settings - Fork 211
92 lines (81 loc) · 2.72 KB
/
Copy pathbuild_ipa.yml
File metadata and controls
92 lines (81 loc) · 2.72 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Build Unsigned Debug IPA
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
permissions:
contents: write
jobs:
build:
name: Build Debug IPA
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '26.1'
- name: Diagnostics (helpful in logs)
run: |
set -euxo pipefail
xcodebuild -version
xcode-select -p
xcodebuild -showsdks
- name: Resolve Swift Packages (device-only)
run: |
set -euxo pipefail
xcodebuild -resolvePackageDependencies \
-project StikDebug.xcodeproj \
-scheme "StikDebug" \
-destination 'generic/platform=iOS' \
-skipPackagePluginValidation
- name: Archive Build (Debug, Unsigned, Device-only)
run: |
set -euxo pipefail
xcodebuild clean archive \
-project StikDebug.xcodeproj \
-scheme "StikDebug" \
-configuration Debug \
-archivePath "$PWD/build/StikDebug.xcarchive" \
-destination 'generic/platform=iOS' \
-derivedDataPath "$PWD/build/DerivedData" \
CODE_SIGNING_ALLOWED=NO \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGN_IDENTITY="" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=NO \
TEST_AFTER_BUILD=NO \
ENABLE_TESTABILITY=NO \
COMPILER_INDEX_STORE_ENABLE=NO \
SWIFT_OPTIMIZATION_LEVEL="-Onone" \
IPHONEOS_DEPLOYMENT_TARGET=17.4
- name: Create IPA from Archive
run: |
set -euxo pipefail
APP_PATH="$PWD/build/StikDebug.xcarchive/Products/Applications/StikDebug.app"
test -d "$APP_PATH" # fail early if archive didn't produce the .app
mkdir -p Payload
cp -R "$APP_PATH" Payload/
(cd Payload && zip -r ../StikDebug.ipa .)
rm -rf Payload
- name: Upload Debug IPA (artifact)
uses: actions/upload-artifact@v4
with:
name: StikDebug-Debug.ipa
path: StikDebug.ipa
retention-days: 90
- name: Create or Update GitHub Release (GitHub-Alpha)
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: softprops/action-gh-release@v2
with:
tag_name: GitHub-Alpha
name: GitHub-Alpha
prerelease: true
generate_release_notes: false
target_commitish: ${{ github.sha }}
files: StikDebug.ipa
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}