Skip to content

Commit 506c11e

Browse files
authored
ci: fix nitro modules build and add js library build (#836)
1 parent 79f2a68 commit 506c11e

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.github/workflows/build-templates.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ on:
2222
jobs:
2323
build:
2424
env:
25-
XCODE_VERSION: 16.2
25+
XCODE_VERSION: 16.3
2626
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
2727
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
2828

2929
strategy:
3030
fail-fast: false
3131
matrix:
3232
os:
33-
- ubuntu
34-
- macos
33+
- ubuntu-latest
34+
- macos-15
3535
type:
3636
- name: turbo-module
3737
language: kotlin-objc
@@ -40,15 +40,16 @@ jobs:
4040
- name: nitro-module
4141
language: kotlin-swift
4242
include:
43-
- os: ubuntu
44-
type.name: library
45-
type.language: js
43+
- os: ubuntu-latest
44+
type:
45+
name: library
46+
language: js
4647

4748
concurrency:
4849
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.type.name }}-${{ matrix.type.language }}
4950
cancel-in-progress: true
5051

51-
runs-on: ${{ matrix.os }}-latest
52+
runs-on: ${{ matrix.os }}
5253

5354
steps:
5455
- name: Checkout
@@ -130,14 +131,14 @@ jobs:
130131
working-directory: ${{ env.work_dir }}
131132
run: |
132133
# Build Android for only some matrices to skip redundant builds
133-
if [[ ${{ matrix.os }} == ubuntu ]]; then
134+
if [[ ${{ matrix.os }} =~ ubuntu ]]; then
134135
if [[ ${{ matrix.type.name }} == *-view && ${{ matrix.type.language }} == *-objc ]] || [[ ${{ matrix.type.name }} == *-module && ${{ matrix.type.language }} == *-objc ]]; then
135136
echo "android_build=1" >> $GITHUB_ENV
136137
fi
137138
fi
138139
139140
# Build iOS for only some matrices to skip redundant builds
140-
if [[ ${{ matrix.os }} == macos ]]; then
141+
if [[ ${{ matrix.os }} =~ macos ]]; then
141142
if [[ ${{ matrix.type.name }} == *-view && ${{ matrix.type.language }} == kotlin-* ]] || [[ ${{ matrix.type.name }} == *-module && ${{ matrix.type.language }} == kotlin-* ]]; then
142143
echo "ios_build=1" >> $GITHUB_ENV
143144
fi
@@ -239,8 +240,9 @@ jobs:
239240
path: |
240241
${{ env.work_dir }}/**/ios/Pods
241242
${{ env.work_dir }}/**/ios/Podfile.lock
242-
key: ${{ runner.os }}-library-cocoapods-${{ hashFiles(format('{0}/example/ios/Podfile', env.work_dir)) }}-${{ hashFiles(format('{0}/yarn.lock', env.work_dir)) }}
243+
key: ${{ runner.os }}-library-cocoapods-${{ hashFiles(format('{0}/example/ios/Podfile', env.work_dir)) }}-${{ hashFiles(format('{0}/yarn.lock', env.work_dir)) }}-${{ hashFiles(format('{0}/**/*ViewNativeComponent.ts', env.work_dir), format('{0}/**/Native*.ts', env.work_dir), format('{0}/**/*.nitro.ts', env.work_dir)) }}
243244
restore-keys: |
245+
${{ runner.os }}-library-cocoapods-${{ hashFiles(format('{0}/example/ios/Podfile', env.work_dir)) }}-${{ hashFiles(format('{0}/yarn.lock', env.work_dir)) }}-
244246
${{ runner.os }}-library-cocoapods-${{ hashFiles(format('{0}/example/ios/Podfile', env.work_dir)) }}-
245247
${{ runner.os }}-library-cocoapods-
246248
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export const FALLBACK_BOB_VERSION = '0.40.8';
2-
export const FALLBACK_NITRO_MODULES_VERSION = '0.22.1';
2+
export const FALLBACK_NITRO_MODULES_VERSION = '0.25.2';
33
export const SUPPORTED_REACT_NATIVE_VERSION = '0.79.2';

0 commit comments

Comments
 (0)