39
39
language :
40
40
- kotlin-objc
41
41
- kotlin-swift
42
+ arch :
43
+ - auto
42
44
exclude :
43
45
- type : module-new
44
46
language : kotlin-swift
@@ -52,27 +54,50 @@ jobs:
52
54
- os : ubuntu-latest
53
55
type : library
54
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
55
74
- os : ubuntu-latest
56
75
type : module-legacy
57
76
language : cpp
77
+ arch : auto
58
78
- os : ubuntu-latest
59
79
type : module-mixed
60
80
language : cpp
81
+ arch : auto
61
82
- os : ubuntu-latest
62
83
type : module-new
63
84
language : cpp
85
+ arch : auto
64
86
- os : macos-14
65
87
type : module-legacy
66
88
language : cpp
89
+ arch : auto
67
90
- os : macos-14
68
91
type : module-mixed
69
92
language : cpp
93
+ arch : auto
70
94
- os : macos-14
71
95
type : module-new
72
96
language : cpp
97
+ arch : auto
73
98
74
99
concurrency :
75
- 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 }}
76
101
cancel-in-progress : true
77
102
78
103
runs-on : ${{ matrix.os }}
@@ -84,13 +109,20 @@ jobs:
84
109
- name : Setup
85
110
uses : ./.github/actions/setup
86
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
+
87
119
- name : Build package
88
120
run : |
89
121
yarn workspace create-react-native-library prepare
90
122
91
123
- name : Get working directory
92
124
run : |
93
- 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
94
126
95
127
- name : Create library
96
128
run : |
@@ -158,9 +190,9 @@ jobs:
158
190
with :
159
191
path : |
160
192
${{ env.work_dir }}/.turbo
161
- 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)) }}
162
194
restore-keys : |
163
- ${{ runner.os }}-library-turborepo-${{ matrix.type }}-${{ matrix.language }}-
195
+ ${{ runner.os }}-library-turborepo-${{ matrix.type }}-${{ matrix.language }}-${{ matrix.arch }}-
164
196
165
197
- name : Check turborepo cache
166
198
if : env.android_build == 1 || env.ios_build == 1
@@ -248,13 +280,13 @@ jobs:
248
280
${{ runner.os }}-library-cocoapods-
249
281
250
282
- name : Install cocoapods
283
+ env :
284
+ NO_FLIPPER : 1
251
285
if : env.ios_build == 1 && env.turbo_cache_hit_ios != 1 && steps.library-cocoapods-cache.outputs.cache-hit != 'true'
252
286
working-directory : ${{ env.work_dir }}
253
287
run : |
254
288
cd example/ios
255
289
pod install
256
- env :
257
- NO_FLIPPER : 1
258
290
259
291
- name : Build example (iOS)
260
292
if : env.ios_build == 1
0 commit comments