mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-16 04:20:30 +00:00
Update build_ipa.yml
This commit is contained in:
parent
fc8b99d03f
commit
edbe8bb65e
1 changed files with 20 additions and 42 deletions
62
.github/workflows/build_ipa.yml
vendored
62
.github/workflows/build_ipa.yml
vendored
|
|
@ -8,68 +8,45 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Debug IPA
|
name: Build Debug IPA
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Xcode
|
- name: Setup Xcode (latest stable)
|
||||||
uses: maxim-lobanov/setup-xcode@v1
|
uses: maxim-lobanov/setup-xcode@v1
|
||||||
with:
|
with:
|
||||||
xcode-version: '26.1'
|
xcode-version: '26.0.1'
|
||||||
|
|
||||||
- name: Diagnostics (helpful in logs)
|
- name: Archive Build (Debug, Unsigned)
|
||||||
run: |
|
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 \
|
xcodebuild clean archive \
|
||||||
-project StikDebug.xcodeproj \
|
-project StikDebug.xcodeproj \
|
||||||
-scheme "StikDebug" \
|
-scheme "StikDebug" \
|
||||||
-configuration Debug \
|
-configuration Debug \
|
||||||
-archivePath "$PWD/build/StikDebug.xcarchive" \
|
-archivePath build/StikDebug.xcarchive \
|
||||||
|
-sdk iphoneos \
|
||||||
-destination 'generic/platform=iOS' \
|
-destination 'generic/platform=iOS' \
|
||||||
-derivedDataPath "$PWD/build/DerivedData" \
|
ONLY_ACTIVE_ARCH=NO \
|
||||||
CODE_SIGNING_ALLOWED=NO \
|
|
||||||
CODE_SIGNING_REQUIRED=NO \
|
|
||||||
CODE_SIGN_IDENTITY="" \
|
CODE_SIGN_IDENTITY="" \
|
||||||
SKIP_INSTALL=NO \
|
CODE_SIGNING_REQUIRED=NO \
|
||||||
BUILD_LIBRARY_FOR_DISTRIBUTION=NO \
|
CODE_SIGNING_ALLOWED=NO \
|
||||||
TEST_AFTER_BUILD=NO \
|
|
||||||
ENABLE_TESTABILITY=NO \
|
|
||||||
COMPILER_INDEX_STORE_ENABLE=NO \
|
|
||||||
SWIFT_OPTIMIZATION_LEVEL="-Onone" \
|
SWIFT_OPTIMIZATION_LEVEL="-Onone" \
|
||||||
IPHONEOS_DEPLOYMENT_TARGET=17.4
|
IPHONEOS_DEPLOYMENT_TARGET=17.4
|
||||||
|
|
||||||
- name: Create IPA from Archive
|
- name: Create IPA from Archive
|
||||||
run: |
|
run: |
|
||||||
set -euxo pipefail
|
cp -R build/StikDebug.xcarchive/Products/Applications/StikDebug.app .
|
||||||
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
|
mkdir -p Payload
|
||||||
cp -R "$APP_PATH" Payload/
|
cp -R StikDebug.app Payload/
|
||||||
(cd Payload && zip -r ../StikDebug.ipa .)
|
zip -r StikDebug.ipa Payload
|
||||||
rm -rf Payload
|
rm -rf Payload StikDebug.app
|
||||||
|
|
||||||
- name: Upload Debug IPA (artifact)
|
- name: Upload Debug IPA (artifact)
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|
@ -85,8 +62,9 @@ jobs:
|
||||||
tag_name: GitHub-Alpha
|
tag_name: GitHub-Alpha
|
||||||
name: GitHub-Alpha
|
name: GitHub-Alpha
|
||||||
prerelease: true
|
prerelease: true
|
||||||
generate_release_notes: false
|
generate_release_notes: true
|
||||||
target_commitish: ${{ github.sha }}
|
target_commitish: ${{ github.sha }}
|
||||||
files: StikDebug.ipa
|
files: |
|
||||||
|
StikDebug.ipa
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue