Skip to content

Commit 1dd1c9c

Browse files
committed
More env var
1 parent 67cea70 commit 1dd1c9c

File tree

1 file changed

+90
-19
lines changed

1 file changed

+90
-19
lines changed

.github/workflows/pr-realm-js.yml

Lines changed: 90 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,83 @@ jobs:
6464
fail-fast: false
6565
matrix:
6666
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+
}
6875
- { os: linux, runner: ubuntu-latest, arch: arm, artifact-path: packages/realm/prebuilds }
6976
- { 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+
}
7185
- { 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+
}
81144
steps:
82145
- name: Checkout code
83146
uses: actions/checkout@v3
@@ -122,8 +185,8 @@ jobs:
122185
if: ${{ matrix.variant.os == 'android' }}
123186
uses: actions/setup-java@v3
124187
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"
127190

128191
- name: Setup Android SDK
129192
if: ${{ matrix.variant.os == 'android' }}
@@ -146,7 +209,7 @@ jobs:
146209
uses: hendrikmuhs/ccache-action@v1
147210
with:
148211
key: ${{ runner.os }}-${{ matrix.variant.os }}-${{ matrix.variant.arch }}
149-
max-size: '2.0G'
212+
max-size: "2.0G"
150213

151214
- name: Prepend ccache executables to the PATH
152215
if: ${{ runner.os != 'Windows' }}
@@ -263,6 +326,7 @@ jobs:
263326
IOS_DEVICE_NAME: iPhone 14
264327
CODE_SIGN_IDENTITY: ""
265328
CODE_SIGNING_REQUIRED: NO
329+
AD_HOC_CODE_SIGNING_ALLOWED: YES
266330
runs-on: ${{ matrix.variant.runner }}
267331
strategy:
268332
fail-fast: false
@@ -277,7 +341,13 @@ jobs:
277341
- { os: darwin, target: "test:ci:main", runner: macos-latest, environment: electron }
278342
- { os: darwin, target: "test:ci:renderer", runner: macos-latest, environment: electron }
279343
- { 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+
}
281351
- { os: ios, target: "test:ci:ios", runner: macos-latest-xlarge, environment: react-native, arch: "ios" }
282352
#- { os: ios, target: "test:ci:catalyst", runner: macos-latest, environment: react-native, arch: "catalyst" }
283353
timeout-minutes: 60
@@ -314,7 +384,7 @@ jobs:
314384
if: ${{ matrix.variant.environment == 'react-native' }}
315385
uses: actions/cache@v3
316386
with:
317-
path: '**/Pods'
387+
path: "**/Pods"
318388
key: ${{ runner.os }}-${{matrix.variant.environment}}-${{ hashFiles('**/Podfile.lock', './src/**', './vendor/**') }}
319389
restore-keys: |
320390
${{ runner.os }}-${{matrix.variant.environment}}-
@@ -328,7 +398,7 @@ jobs:
328398
if: ${{ matrix.variant.environment == 'react-native' }}
329399
with:
330400
key: ${{ runner.os }}-${{ matrix.variant.os }}-${{ matrix.variant.arch }}
331-
max-size: '2.0G'
401+
max-size: "2.0G"
332402

333403
# in CI file timestamps change with every run so instead rely on file content hashing
334404
# https://reactnative.dev/docs/build-speed#using-this-approach-on-a-ci
@@ -406,6 +476,7 @@ jobs:
406476
MOCHA_REMOTE_CONTEXT: ${{ steps.mocha-env.outputs.context }}
407477
CODE_SIGN_IDENTITY: ""
408478
CODE_SIGNING_REQUIRED: NO
479+
AD_HOC_CODE_SIGNING_ALLOWED: YES
409480
timeout-minutes: 75
410481
run: npm run ${{ matrix.variant.target}} --prefix integration-tests/environments/${{ matrix.variant.environment }}
411482

@@ -433,8 +504,8 @@ jobs:
433504
- uses: actions/setup-java@v3
434505
if: ${{ matrix.variant.os == 'android' }}
435506
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"
438509

439510
- name: Run ${{matrix.variant.target}} (${{ matrix.variant.os}} / ${{ matrix.variant.environment }})
440511
if: ${{ matrix.variant.os == 'android' }}

0 commit comments

Comments
 (0)