fix: enable release publishing #21
Workflow file for this run
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: | |
| push: | |
| branches: ["**"] | |
| tags: ["v*"] | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| permissions: | |
| contents: write | |
| runs-on: xcode-27 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Select Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest | |
| - name: Export DEVELOPER_DIR | |
| run: echo "DEVELOPER_DIR=$(xcode-select -p)" >> "$GITHUB_ENV" | |
| - name: Install tools | |
| run: | | |
| rustup target add aarch64-apple-ios aarch64-apple-ios-sim | |
| brew install xcodegen | |
| - name: Cache Rust build | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: rust | |
| - name: Build Rust FFI xcframework | |
| run: ./build-rust.sh | |
| - name: Generate Xcode project | |
| run: xcodegen generate | |
| - name: Build (Release, unsigned) | |
| run: | | |
| xcodebuild \ | |
| -project StikPair.xcodeproj \ | |
| -scheme StikPair \ | |
| -configuration Release \ | |
| -sdk iphoneos \ | |
| -destination 'generic/platform=iOS' \ | |
| -derivedDataPath build/dd \ | |
| CODE_SIGNING_ALLOWED=NO \ | |
| CODE_SIGNING_REQUIRED=NO \ | |
| CODE_SIGN_IDENTITY="" \ | |
| CODE_SIGN_ENTITLEMENTS="" \ | |
| build | |
| - name: Package unsigned IPA | |
| run: | | |
| set -euo pipefail | |
| APP="build/dd/Build/Products/Release-iphoneos/StikPair.app" | |
| rm -rf build/Payload StikPair.ipa | |
| mkdir -p build/Payload | |
| cp -R "$APP" build/Payload/ | |
| find build/Payload -name '.DS_Store' -delete | |
| (cd build && zip -qr ../StikPair.ipa Payload) | |
| ls -lh StikPair.ipa | |
| - name: Upload IPA artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: StikPair-unsigned | |
| path: StikPair.ipa | |
| if-no-files-found: error | |
| - name: Attach IPA to release | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| uses: softprops/action-gh-release@v3 | |
| with: | |
| files: StikPair.ipa |