Skip to content

Commit edbe8bb

Browse files
authored
Update build_ipa.yml
1 parent fc8b99d commit edbe8bb

File tree

1 file changed

+20
-42
lines changed

1 file changed

+20
-42
lines changed

.github/workflows/build_ipa.yml

Lines changed: 20 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -8,68 +8,45 @@ on:
88
workflow_dispatch:
99

1010
permissions:
11-
contents: write
12-
11+
contents: write
12+
1313
jobs:
1414
build:
1515
name: Build Debug IPA
16-
runs-on: macos-latest
16+
runs-on: macos-latest
1717

1818
steps:
1919
- name: Checkout
2020
uses: actions/checkout@v4
21-
22-
- name: Setup Xcode
21+
22+
- name: Setup Xcode (latest stable)
2323
uses: maxim-lobanov/setup-xcode@v1
2424
with:
25-
xcode-version: '26.1'
26-
27-
- name: Diagnostics (helpful in logs)
28-
run: |
29-
set -euxo pipefail
30-
xcodebuild -version
31-
xcode-select -p
32-
xcodebuild -showsdks
33-
34-
- name: Resolve Swift Packages (device-only)
35-
run: |
36-
set -euxo pipefail
37-
xcodebuild -resolvePackageDependencies \
38-
-project StikDebug.xcodeproj \
39-
-scheme "StikDebug" \
40-
-destination 'generic/platform=iOS' \
41-
-skipPackagePluginValidation
42-
43-
- name: Archive Build (Debug, Unsigned, Device-only)
25+
xcode-version: '26.0.1'
26+
27+
- name: Archive Build (Debug, Unsigned)
4428
run: |
45-
set -euxo pipefail
4629
xcodebuild clean archive \
4730
-project StikDebug.xcodeproj \
4831
-scheme "StikDebug" \
4932
-configuration Debug \
50-
-archivePath "$PWD/build/StikDebug.xcarchive" \
33+
-archivePath build/StikDebug.xcarchive \
34+
-sdk iphoneos \
5135
-destination 'generic/platform=iOS' \
52-
-derivedDataPath "$PWD/build/DerivedData" \
53-
CODE_SIGNING_ALLOWED=NO \
54-
CODE_SIGNING_REQUIRED=NO \
36+
ONLY_ACTIVE_ARCH=NO \
5537
CODE_SIGN_IDENTITY="" \
56-
SKIP_INSTALL=NO \
57-
BUILD_LIBRARY_FOR_DISTRIBUTION=NO \
58-
TEST_AFTER_BUILD=NO \
59-
ENABLE_TESTABILITY=NO \
60-
COMPILER_INDEX_STORE_ENABLE=NO \
38+
CODE_SIGNING_REQUIRED=NO \
39+
CODE_SIGNING_ALLOWED=NO \
6140
SWIFT_OPTIMIZATION_LEVEL="-Onone" \
6241
IPHONEOS_DEPLOYMENT_TARGET=17.4
6342
6443
- name: Create IPA from Archive
6544
run: |
66-
set -euxo pipefail
67-
APP_PATH="$PWD/build/StikDebug.xcarchive/Products/Applications/StikDebug.app"
68-
test -d "$APP_PATH" # fail early if archive didn't produce the .app
45+
cp -R build/StikDebug.xcarchive/Products/Applications/StikDebug.app .
6946
mkdir -p Payload
70-
cp -R "$APP_PATH" Payload/
71-
(cd Payload && zip -r ../StikDebug.ipa .)
72-
rm -rf Payload
47+
cp -R StikDebug.app Payload/
48+
zip -r StikDebug.ipa Payload
49+
rm -rf Payload StikDebug.app
7350
7451
- name: Upload Debug IPA (artifact)
7552
uses: actions/upload-artifact@v4
@@ -85,8 +62,9 @@ jobs:
8562
tag_name: GitHub-Alpha
8663
name: GitHub-Alpha
8764
prerelease: true
88-
generate_release_notes: false
65+
generate_release_notes: true
8966
target_commitish: ${{ github.sha }}
90-
files: StikDebug.ipa
67+
files: |
68+
StikDebug.ipa
9169
env:
9270
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)