@@ -64,20 +64,83 @@ jobs:
64
64
fail-fast : false
65
65
matrix :
66
66
variant :
67
- - { os: linux, runner: ubuntu-latest, arch: x64, artifact-path: packages/realm/prebuilds, test-node: true, test-electron: true }
67
+ - {
68
+ os : linux,
69
+ runner : ubuntu-latest,
70
+ arch : x64,
71
+ artifact-path : packages/realm/prebuilds,
72
+ test-node : true,
73
+ test-electron : true,
74
+ }
68
75
- { os: linux, runner: ubuntu-latest, arch: arm, artifact-path: packages/realm/prebuilds }
69
76
- { os: linux, runner: ubuntu-latest, arch: arm64, artifact-path: packages/realm/prebuilds }
70
- - { os: windows, runner: windows-latest, arch: x64, artifact-path: packages/realm/prebuilds, test-node: true, test-electron: true }
77
+ - {
78
+ os : windows,
79
+ runner : windows-latest,
80
+ arch : x64,
81
+ artifact-path : packages/realm/prebuilds,
82
+ test-node : true,
83
+ test-electron : true,
84
+ }
71
85
- { os: windows, runner: windows-2019, arch: ia32, artifact-path: packages/realm/prebuilds }
72
- - { os: android, runner: ubuntu-latest, arch: x86_64, artifact-path: packages/realm/react-native/android/src/main/jniLibs }
73
- - { os: android, runner: ubuntu-latest, arch: armeabi-v7a, artifact-path: packages/realm/react-native/android/src/main/jniLibs }
74
- - { os: android, runner: ubuntu-latest, arch: arm64-v8a, artifact-path: packages/realm/react-native/android/src/main/jniLibs }
75
- - { os: android, runner: ubuntu-latest, arch: x86, artifact-path: packages/realm/react-native/android/src/main/jniLibs }
76
- - { os: darwin, runner: macos-latest, arch: x64, artifact-path: packages/realm/prebuilds, test-node: true, test-electron: true }
77
- - { os: darwin, runner: macos-latest, arch: arm64, artifact-path: packages/realm/prebuilds, test-node: true, test-electron: true }
78
- - { os: ios, runner: macos-latest-xlarge, arch: simulator, artifact-path: packages/realm/react-native/ios/realm-js-ios.xcframework }
79
- - { os: ios, runner: macos-latest-xlarge, arch: catalyst, artifact-path: packages/realm/react-native/ios/realm-js-ios.xcframework }
80
- - { os: ios, runner: macos-latest-xlarge, arch: ios, artifact-path: packages/realm/react-native/ios/realm-js-ios.xcframework }
86
+ - {
87
+ os : android,
88
+ runner : ubuntu-latest,
89
+ arch : x86_64,
90
+ artifact-path : packages/realm/react-native/android/src/main/jniLibs,
91
+ }
92
+ - {
93
+ os : android,
94
+ runner : ubuntu-latest,
95
+ arch : armeabi-v7a,
96
+ artifact-path : packages/realm/react-native/android/src/main/jniLibs,
97
+ }
98
+ - {
99
+ os : android,
100
+ runner : ubuntu-latest,
101
+ arch : arm64-v8a,
102
+ artifact-path : packages/realm/react-native/android/src/main/jniLibs,
103
+ }
104
+ - {
105
+ os : android,
106
+ runner : ubuntu-latest,
107
+ arch : x86,
108
+ artifact-path : packages/realm/react-native/android/src/main/jniLibs,
109
+ }
110
+ - {
111
+ os : darwin,
112
+ runner : macos-latest,
113
+ arch : x64,
114
+ artifact-path : packages/realm/prebuilds,
115
+ test-node : true,
116
+ test-electron : true,
117
+ }
118
+ - {
119
+ os : darwin,
120
+ runner : macos-latest,
121
+ arch : arm64,
122
+ artifact-path : packages/realm/prebuilds,
123
+ test-node : true,
124
+ test-electron : true,
125
+ }
126
+ - {
127
+ os : ios,
128
+ runner : macos-latest-xlarge,
129
+ arch : simulator,
130
+ artifact-path : packages/realm/react-native/ios/realm-js-ios.xcframework,
131
+ }
132
+ - {
133
+ os : ios,
134
+ runner : macos-latest-xlarge,
135
+ arch : catalyst,
136
+ artifact-path : packages/realm/react-native/ios/realm-js-ios.xcframework,
137
+ }
138
+ - {
139
+ os : ios,
140
+ runner : macos-latest-xlarge,
141
+ arch : ios,
142
+ artifact-path : packages/realm/react-native/ios/realm-js-ios.xcframework,
143
+ }
81
144
steps :
82
145
- name : Checkout code
83
146
uses : actions/checkout@v3
@@ -122,8 +185,8 @@ jobs:
122
185
if : ${{ matrix.variant.os == 'android' }}
123
186
uses : actions/setup-java@v3
124
187
with :
125
- distribution : ' zulu' # See 'Supported distributions' for available options
126
- java-version : ' 11 '
188
+ distribution : " zulu" # See 'Supported distributions' for available options
189
+ java-version : " 11 "
127
190
128
191
- name : Setup Android SDK
129
192
if : ${{ matrix.variant.os == 'android' }}
@@ -146,7 +209,7 @@ jobs:
146
209
uses : hendrikmuhs/ccache-action@v1
147
210
with :
148
211
key : ${{ runner.os }}-${{ matrix.variant.os }}-${{ matrix.variant.arch }}
149
- max-size : ' 2.0G'
212
+ max-size : " 2.0G"
150
213
151
214
- name : Prepend ccache executables to the PATH
152
215
if : ${{ runner.os != 'Windows' }}
@@ -263,6 +326,7 @@ jobs:
263
326
IOS_DEVICE_NAME : iPhone 14
264
327
CODE_SIGN_IDENTITY : " "
265
328
CODE_SIGNING_REQUIRED : NO
329
+ AD_HOC_CODE_SIGNING_ALLOWED : YES
266
330
runs-on : ${{ matrix.variant.runner }}
267
331
strategy :
268
332
fail-fast : false
@@ -277,7 +341,13 @@ jobs:
277
341
- { os: darwin, target: "test:ci:main", runner: macos-latest, environment: electron }
278
342
- { os: darwin, target: "test:ci:renderer", runner: macos-latest, environment: electron }
279
343
- { os: darwin, target: "test:ci", runner: macos-latest, environment: node }
280
- - { os: android, target: "test:ci:android", runner: macos-latest-large, environment: react-native, arch: "armeabi-v7a" }
344
+ - {
345
+ os : android,
346
+ target : " test:ci:android" ,
347
+ runner : macos-latest-large,
348
+ environment : react-native,
349
+ arch : " armeabi-v7a" ,
350
+ }
281
351
- { os: ios, target: "test:ci:ios", runner: macos-latest-xlarge, environment: react-native, arch: "ios" }
282
352
# - { os: ios, target: "test:ci:catalyst", runner: macos-latest, environment: react-native, arch: "catalyst" }
283
353
timeout-minutes : 60
@@ -314,7 +384,7 @@ jobs:
314
384
if : ${{ matrix.variant.environment == 'react-native' }}
315
385
uses : actions/cache@v3
316
386
with :
317
- path : ' **/Pods'
387
+ path : " **/Pods"
318
388
key : ${{ runner.os }}-${{matrix.variant.environment}}-${{ hashFiles('**/Podfile.lock', './src/**', './vendor/**') }}
319
389
restore-keys : |
320
390
${{ runner.os }}-${{matrix.variant.environment}}-
@@ -328,7 +398,7 @@ jobs:
328
398
if : ${{ matrix.variant.environment == 'react-native' }}
329
399
with :
330
400
key : ${{ runner.os }}-${{ matrix.variant.os }}-${{ matrix.variant.arch }}
331
- max-size : ' 2.0G'
401
+ max-size : " 2.0G"
332
402
333
403
# in CI file timestamps change with every run so instead rely on file content hashing
334
404
# https://reactnative.dev/docs/build-speed#using-this-approach-on-a-ci
@@ -406,6 +476,7 @@ jobs:
406
476
MOCHA_REMOTE_CONTEXT : ${{ steps.mocha-env.outputs.context }}
407
477
CODE_SIGN_IDENTITY : " "
408
478
CODE_SIGNING_REQUIRED : NO
479
+ AD_HOC_CODE_SIGNING_ALLOWED : YES
409
480
timeout-minutes : 75
410
481
run : npm run ${{ matrix.variant.target}} --prefix integration-tests/environments/${{ matrix.variant.environment }}
411
482
@@ -433,8 +504,8 @@ jobs:
433
504
- uses : actions/setup-java@v3
434
505
if : ${{ matrix.variant.os == 'android' }}
435
506
with :
436
- distribution : ' zulu' # See 'Supported distributions' for available options
437
- java-version : ' 17 '
507
+ distribution : " zulu" # See 'Supported distributions' for available options
508
+ java-version : " 17 "
438
509
439
510
- name : Run ${{matrix.variant.target}} (${{ matrix.variant.os}} / ${{ matrix.variant.environment }})
440
511
if : ${{ matrix.variant.os == 'android' }}
0 commit comments