Skip to content

Commit 647925c

Browse files
authored
chore: Build iOS with USE_FRAMEWORKS too (#1197)
* chore: Build iOS with `USE_FRAMEWORKS` too * Split cache across matrix
1 parent 2daf599 commit 647925c

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

.github/workflows/build-ios.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,29 @@ jobs:
4343
build:
4444
name: Build iOS Example App
4545
runs-on: macOS-26
46+
strategy:
47+
matrix:
48+
include:
49+
- name: static_frameworks
50+
use_frameworks: static
51+
- name: no_frameworks
52+
use_frameworks: "" # intentionally unset
4653
steps:
4754
- uses: actions/checkout@v6
4855
- uses: oven-sh/setup-bun@v2
4956

57+
- name: Set USE_FRAMEWORKS
58+
if: matrix.use_frameworks != ''
59+
run: echo "USE_FRAMEWORKS=${{ matrix.use_frameworks }}" >> $GITHUB_ENV
60+
5061
- name: Install npm dependencies (bun)
5162
run: bun install
5263

5364
- name: Install Ccache
5465
uses: hendrikmuhs/ccache-action@v1.2
5566
with:
5667
max-size: 1.5G
57-
key: ${{ runner.os }}-ccache-example-ios
68+
key: ${{ runner.os }}-${{ matrix.use_frameworks }}-ccache-example-ios
5869
create-symlink: true
5970
- name: Setup ccache behavior
6071
run: |
@@ -77,9 +88,9 @@ jobs:
7788
uses: actions/cache@v5
7889
with:
7990
path: example/ios/Pods
80-
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock', '**/Gemfile.lock') }}
91+
key: ${{ runner.os }}-${{ matrix.use_frameworks }}-pods-${{ hashFiles('**/Podfile.lock', '**/Gemfile.lock') }}
8192
restore-keys: |
82-
${{ runner.os }}-pods-
93+
${{ runner.os }}-${{ matrix.use_frameworks }}-pods-
8394
- name: Install Pods
8495
working-directory: example
8596
run: bun pods
@@ -88,9 +99,9 @@ jobs:
8899
uses: actions/cache@v5
89100
with:
90101
path: example/ios/build
91-
key: ${{ runner.os }}-dd-${{ hashFiles('**/Podfile.lock', '**/Gemfile.lock', '**/package.json', '**/bun.lockb') }}-xcode26.2
102+
key: ${{ runner.os }}-${{ matrix.use_frameworks }}-dd-${{ hashFiles('**/Podfile.lock', '**/Gemfile.lock', '**/package.json', '**/bun.lockb') }}-xcode26.2
92103
restore-keys: |
93-
${{ runner.os }}-dd-
104+
${{ runner.os }}-${{ matrix.use_frameworks }}-dd-
94105
95106
- name: Build App
96107
working-directory: example/ios

example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ENV['RCT_NEW_ARCH_ENABLED'] = '1'
22
ENV['RCT_USE_RN_DEP'] = '1'
33
ENV['RCT_USE_PREBUILT_RNCORE'] = '1'
44

5-
Pod::UI.puts "Building with RCT_NEW_ARCH_ENABLED = #{ENV['RCT_NEW_ARCH_ENABLED']}..."
5+
Pod::UI.puts "Building with USE_FRAMEWORKS = #{ENV['USE_FRAMEWORKS']}..."
66

77
# Resolve react_native_pods.rb with node to allow for hoisting
88
require Pod::Executable.execute_command('node', ['-p',

0 commit comments

Comments
 (0)