-
-
Notifications
You must be signed in to change notification settings - Fork 30
73 lines (64 loc) · 2.33 KB
/
build-ios-release.yml
File metadata and controls
73 lines (64 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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