@@ -37,56 +37,67 @@ jobs:
37
37
- view-mixed
38
38
- view-new
39
39
language :
40
- - java-objc
41
- - java-swift
42
40
- kotlin-objc
43
41
- kotlin-swift
42
+ arch :
43
+ - auto
44
44
exclude :
45
- - os : macos-14
46
- language : kotlin-objc
47
- - os : macos-14
48
- language : kotlin-swift
49
- - type : module-new
50
- language : java-swift
51
45
- type : module-new
52
46
language : kotlin-swift
53
- - type : module-mixed
54
- language : java-swift
55
47
- type : module-mixed
56
48
language : kotlin-swift
57
- - type : view-new
58
- language : java-swift
59
49
- type : view-new
60
50
language : kotlin-swift
61
- - type : view-mixed
62
- language : java-swift
63
51
- type : view-mixed
64
52
language : kotlin-swift
65
53
include :
66
54
- os : ubuntu-latest
67
55
type : library
68
56
language : js
57
+ arch : auto
58
+ - os : ubuntu-latest
59
+ type : module-mixed
60
+ language : kotlin-objc
61
+ arch : new
62
+ - os : macos-14
63
+ type : module-mixed
64
+ language : kotlin-objc
65
+ arch : new
66
+ - os : ubuntu-latest
67
+ type : view-mixed
68
+ language : kotlin-objc
69
+ arch : new
70
+ - os : macos-14
71
+ type : view-mixed
72
+ language : kotlin-objc
73
+ arch : new
69
74
- os : ubuntu-latest
70
75
type : module-legacy
71
76
language : cpp
77
+ arch : auto
72
78
- os : ubuntu-latest
73
79
type : module-mixed
74
80
language : cpp
81
+ arch : auto
75
82
- os : ubuntu-latest
76
83
type : module-new
77
84
language : cpp
85
+ arch : auto
78
86
- os : macos-14
79
87
type : module-legacy
80
88
language : cpp
89
+ arch : auto
81
90
- os : macos-14
82
91
type : module-mixed
83
92
language : cpp
93
+ arch : auto
84
94
- os : macos-14
85
95
type : module-new
86
96
language : cpp
97
+ arch : auto
87
98
88
99
concurrency :
89
- group : ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.type }}-${{ matrix.language }}
100
+ group : ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.type }}-${{ matrix.language }}-${{ matrix.arch }}
90
101
cancel-in-progress : true
91
102
92
103
runs-on : ${{ matrix.os }}
@@ -98,13 +109,20 @@ jobs:
98
109
- name : Setup
99
110
uses : ./.github/actions/setup
100
111
112
+ - name : Set environment variables
113
+ run : |
114
+ if [[ "${{ matrix.arch }}" == "new" ]]; then
115
+ echo "RCT_NEW_ARCH_ENABLED=1" >> $GITHUB_ENV
116
+ echo "ORG_GRADLE_PROJECT_newArchEnabled=true" >> $GITHUB_ENV
117
+ fi
118
+
101
119
- name : Build package
102
120
run : |
103
121
yarn workspace create-react-native-library prepare
104
122
105
123
- name : Get working directory
106
124
run : |
107
- echo "work_dir=${{ matrix.os }}-${{ matrix.type }}-${{ matrix.language }}" >> $GITHUB_ENV
125
+ echo "work_dir=${{ matrix.os }}-${{ matrix.type }}-${{ matrix.language }}-${{ matrix.arch }} " >> $GITHUB_ENV
108
126
109
127
- name : Create library
110
128
run : |
@@ -161,7 +179,7 @@ jobs:
161
179
162
180
# Build iOS for only some matrices to skip redundant builds
163
181
if [[ ${{ matrix.os }} == macos-14 ]]; then
164
- if [[ ${{ matrix.type }} == view-* && ${{ matrix.language }} == java -* ]] || [[ ${{ matrix.type }} == module-* && ${{ matrix.language }} == java -* ]] || [[ ${{ matrix.type }} == module-* && ${{ matrix.language }} == cpp ]]; then
182
+ if [[ ${{ matrix.type }} == view-* && ${{ matrix.language }} == kotlin -* ]] || [[ ${{ matrix.type }} == module-* && ${{ matrix.language }} == kotlin -* ]] || [[ ${{ matrix.type }} == module-* && ${{ matrix.language }} == cpp ]]; then
165
183
echo "ios_build=1" >> $GITHUB_ENV
166
184
fi
167
185
fi
@@ -172,9 +190,9 @@ jobs:
172
190
with :
173
191
path : |
174
192
${{ env.work_dir }}/.turbo
175
- key : ${{ runner.os }}-library-turborepo-${{ matrix.type }}-${{ matrix.language }}-${{ hashFiles(format('{0}/yarn.lock', env.work_dir)) }}
193
+ key : ${{ runner.os }}-library-turborepo-${{ matrix.type }}-${{ matrix.language }}-${{ matrix.arch }}-${{ hashFiles(format('{0}/yarn.lock', env.work_dir)) }}
176
194
restore-keys : |
177
- ${{ runner.os }}-library-turborepo-${{ matrix.type }}-${{ matrix.language }}-
195
+ ${{ runner.os }}-library-turborepo-${{ matrix.type }}-${{ matrix.language }}-${{ matrix.arch }}-
178
196
179
197
- name : Check turborepo cache
180
198
if : env.android_build == 1 || env.ios_build == 1
@@ -262,13 +280,13 @@ jobs:
262
280
${{ runner.os }}-library-cocoapods-
263
281
264
282
- name : Install cocoapods
283
+ env :
284
+ NO_FLIPPER : 1
265
285
if : env.ios_build == 1 && env.turbo_cache_hit_ios != 1 && steps.library-cocoapods-cache.outputs.cache-hit != 'true'
266
286
working-directory : ${{ env.work_dir }}
267
287
run : |
268
288
cd example/ios
269
289
pod install
270
- env :
271
- NO_FLIPPER : 1
272
290
273
291
- name : Build example (iOS)
274
292
if : env.ios_build == 1
0 commit comments