Release 0.9.0 #9
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 iOS (Release) | |
| on: | |
| release: | |
| types: [published] | |
| pull_request: | |
| paths: | |
| - '.github/workflows/build-ios-release.yml' | |
| jobs: | |
| build_release: | |
| name: Build iOS Example App (release, new architecture) | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: oven-sh/setup-bun@v2 | |
| - name: Install npm dependencies (bun) | |
| run: bun install | |
| - name: Install npm dependencies in example/ (bun) | |
| working-directory: example | |
| run: bun install | |
| - name: Setup Ruby (bundle) | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 2.7.2 | |
| bundler-cache: true | |
| working-directory: example | |
| - name: Select Xcode 16.4 | |
| run: sudo xcode-select -s "/Applications/Xcode_16.4.app/Contents/Developer" | |
| - name: Restore Pods cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: example/ios/Pods | |
| key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock', '**/Gemfile.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pods- | |
| - name: Install Pods | |
| working-directory: example | |
| run: bun pods | |
| - name: Build App (Release, Simulator) | |
| working-directory: example/ios | |
| run: | | |
| set -o pipefail | |
| xcodebuild \ | |
| CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ \ | |
| -derivedDataPath build -UseModernBuildSystem=YES \ | |
| -workspace NitroImageExample.xcworkspace \ | |
| -scheme NitroImageExample \ | |
| -sdk iphonesimulator \ | |
| -configuration Release \ | |
| -destination 'generic/platform=iOS Simulator' \ | |
| build \ | |
| CODE_SIGNING_ALLOWED=NO | |
| - name: Package .app for Simulator | |
| run: | | |
| cd example/ios/build/Build/Products/Release-iphonesimulator | |
| zip -r ../../../../../../NitroImageExample-Release-Simulator.zip NitroImageExample.app | |
| - name: Upload .app to Release | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ github.event.release.upload_url }} | |
| asset_path: NitroImageExample-Release-Simulator.zip | |
| asset_name: "NitroImageExample-Simulator-${{ github.event.release.tag_name }}.app.zip" | |
| asset_content_type: application/zip |