Build IPA #87
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Unsigned IPA | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| build-ipa: | |
| runs-on: macos-15.6.1 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: '16.4' | |
| - name: Print environment information | |
| run: | | |
| echo "macOS version: $RUNNER_OS" | |
| echo "Runner OS version details:" | |
| sw_vers | |
| echo "Xcode version:" | |
| xcodebuild -version | |
| echo "Xcode path:" | |
| xcode-select -p | |
| - name: Build for Release | |
| run: | | |
| xcodebuild -project PakePlus.xcodeproj -scheme PakePlus -configuration Release -sdk iphoneos \ | |
| CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | |
| - name: Find .app and package as IPA | |
| run: | | |
| # 查找生成的 .app 目录 | |
| APP_PATH=$(find ~/Library/Developer/Xcode/DerivedData -type d -name "PakePlus.app" | grep Release-iphoneos | head -n 1) | |
| echo "APP_PATH is $APP_PATH" | |
| mkdir -p Payload | |
| cp -R "$APP_PATH" Payload/ | |
| zip -r PakePlus.ipa Payload | |
| mkdir -p export | |
| mv PakePlus.ipa export/ | |
| - name: Upload IPA Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: PakePlus-ipa | |
| path: export/PakePlus.ipa |