-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
552 lines (508 loc) · 22.7 KB
/
build.yml
File metadata and controls
552 lines (508 loc) · 22.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
name: Build Mobile App
on:
workflow_call:
inputs:
build_name:
required: true
type: string
platform:
required: true
type: string # android, ios, or both
skip_version_bump:
required: false
type: boolean
default: false
source_branch:
description: >-
Branch, tag, or SHA. If skip_version_bump is false: base branch for the version bump (empty uses github.ref_name).
If skip_version_bump is true: ref for prepare, node-modules setup, and build checkout (empty uses the default triggering ref).
required: false
type: string
default: ''
upload_to_sentry:
description: 'If true, enable Sentry CLI upload of JS source maps and native debug symbols during the build'
required: false
type: boolean
default: false
runner_provider:
description: Runner provider forwarded from the caller
required: false
type: string
default: current
outputs:
build_name:
description: 'build_name input passed to this workflow'
value: ${{ inputs.build_name }}
platform:
description: 'platform input (android, ios, or both)'
value: ${{ inputs.platform }}
source_branch_input:
description: 'source_branch input (empty means default ref was used)'
value: ${{ inputs.source_branch }}
checkout_ref:
description: 'Git ref used for checkout (version-bump commit SHA or source_branch / triggering ref)'
value: ${{ jobs.emit-build-metadata.outputs.checkout_ref }}
built_commit_sha:
description: 'Resolved commit SHA at checkout_ref after build succeeded'
value: ${{ jobs.emit-build-metadata.outputs.built_commit_sha }}
semantic_version:
description: 'package.json version at the built commit'
value: ${{ jobs.emit-build-metadata.outputs.semantic_version }}
android_version_code:
description: 'android/app/build.gradle versionCode at the built commit'
value: ${{ jobs.emit-build-metadata.outputs.android_version_code }}
ios_version_code:
description: 'ios/MetaMask.xcodeproj/project.pbxproj CURRENT_PROJECT_VERSION at the built commit'
value: ${{ jobs.emit-build-metadata.outputs.ios_version_code }}
workflow_dispatch:
inputs:
build_name:
required: true
type: choice
options:
- main-prod
- main-beta
- main-rc
- main-test
- main-e2e
- main-exp
- main-dev
- main-dev-expo
- flask-prod
- flask-test
- flask-e2e
- flask-dev
- qa-prod
- qa-dev
platform:
required: true
type: choice
options: [android, ios, both]
skip_version_bump:
required: false
type: boolean
default: false
upload_to_sentry:
description: 'Upload JS source maps and native debug symbols to Sentry during the build (requires Sentry auth in the build environment)'
required: false
type: boolean
default: false
runner_provider:
description: Runner provider for this manual trial run
required: true
type: choice
options:
- current
- namespace
default: current
permissions:
contents: read
id-token: write
jobs:
# Bump version in repo (bitrise.yml, package.json, ios/android) before building.
# Skipped when skip_version_bump=true (e.g. nightly builds where Bitrise owns the bump).
update-build-version:
if: ${{ !inputs.skip_version_bump }}
uses: ./.github/workflows/update-latest-build-version.yml
permissions:
contents: write
id-token: write
with:
base-branch: ${{ inputs.source_branch || github.ref_name }}
secrets:
PR_TOKEN: ${{ secrets.PR_TOKEN }}
# Load config
prepare:
needs: [update-build-version]
if: ${{ always() && !failure() && !cancelled() }}
runs-on: ${{ inputs.runner_provider == 'namespace' && 'namespace-profile-metamask-ci-linux' || 'ubuntu-latest' }}
outputs:
github_environment: ${{ steps.config.outputs.github_environment }}
secrets_json: ${{ steps.config.outputs.secrets_json }}
tap_and_pay_sdk_repo_ssh: ${{ steps.config.outputs.tap_and_pay_sdk_repo_ssh }}
signing_aws_role: ${{ steps.config.outputs.signing_aws_role }}
signing_aws_secret: ${{ steps.config.outputs.signing_aws_secret }}
signing_android_keystore_path: ${{ steps.config.outputs.signing_android_keystore_path }}
script_name: ${{ steps.config.outputs.script_name }}
checkout_ref_for_setup: ${{ !inputs.skip_version_bump && needs.update-build-version.outputs.commit-hash || (inputs.source_branch || github.ref_name) }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ !inputs.skip_version_bump && needs.update-build-version.outputs.commit-hash || (inputs.source_branch || github.ref_name) }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- run: yarn install --immutable
- run: node scripts/validate-build-config.js
- name: Load config
id: config
run: |
node -e "
const yaml = require('js-yaml');
const fs = require('fs');
const config = yaml.load(fs.readFileSync('builds.yml', 'utf8'));
const build = config.builds['${{ inputs.build_name }}'];
fs.appendFileSync(process.env.GITHUB_OUTPUT, 'github_environment=' + build.github_environment + '\n');
fs.appendFileSync(process.env.GITHUB_OUTPUT, 'secrets_json=' + JSON.stringify(build.secrets || {}) + '\n');
const env = build.env || {};
fs.appendFileSync(process.env.GITHUB_OUTPUT, 'tap_and_pay_sdk_repo_ssh=' + (env.TAP_AND_PAY_SDK_REPO_SSH || '') + '\n');
const signing = build.signing;
fs.appendFileSync(process.env.GITHUB_OUTPUT, 'signing_aws_role=' + (signing ? signing.aws_role || '' : '') + '\n');
fs.appendFileSync(process.env.GITHUB_OUTPUT, 'signing_aws_secret=' + (signing ? signing.aws_secret || '' : '') + '\n');
fs.appendFileSync(process.env.GITHUB_OUTPUT, 'signing_android_keystore_path=' + (signing && signing.android_keystore_path ? signing.android_keystore_path : '') + '\n');
fs.appendFileSync(process.env.GITHUB_OUTPUT, 'script_name=' + (build.script_name || '${{ inputs.build_name }}') + '\n');
"
# Setup dependencies (no secrets) - uses reusable workflow on platform-specific runner
setup-dependencies:
name: Setup Dependencies (${{ matrix.platform }})
needs: [prepare]
if: ${{ always() && !failure() && !cancelled() }}
strategy:
matrix:
platform: ${{ inputs.platform == 'both' && fromJSON('["android", "ios"]') || fromJSON(format('["{0}"]', inputs.platform)) }}
uses: ./.github/workflows/setup-node-modules.yml
with:
ref: ${{ needs.prepare.outputs.checkout_ref_for_setup }}
fetch-depth: 0
checkout-submodules: true
platform: ${{ matrix.platform }}
build_name: ${{ inputs.build_name }}
use-tarball: true
upload-artifact: true
artifact-name: node-modules-${{ inputs.build_name }}-${{ matrix.platform }}
artifact-retention-days: 1
runner_provider: ${{ inputs.runner_provider }}
# Build
build:
needs: [prepare, setup-dependencies, update-build-version]
if: ${{ always() && !failure() && !cancelled() }}
timeout-minutes: 120 # Must allow build step (115min) + setup; comment at Build step documents this
strategy:
matrix:
platform: ${{ inputs.platform == 'both' && fromJSON('["android", "ios"]') || fromJSON(format('["{0}"]', inputs.platform)) }}
# Android: Cirrus lg (large) runner for 8GB Gradle heap; iOS: Cirrus macOS Tahoe (has Xcode 26.x)
runs-on: ${{ inputs.runner_provider == 'namespace' && (matrix.platform == 'ios' && 'namespace-profile-metamask-ios-build' || 'namespace-profile-metamask-android-build') || (matrix.platform == 'ios' && 'ghcr.io/cirruslabs/macos-runner:tahoe-xl' || 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-lg') }}
environment: ${{ needs.prepare.outputs.github_environment }}
steps:
- name: Validate version-bump commit
if: ${{ !inputs.skip_version_bump }}
run: |
COMMIT_HASH="${{ needs.update-build-version.outputs.commit-hash }}"
if [ -z "$COMMIT_HASH" ]; then
echo "::error::update-build-version did not produce commit-hash; refusing to build to avoid using pre-bump version numbers."
exit 1
fi
echo "Building at version-bump commit: $COMMIT_HASH"
- uses: actions/checkout@v4
if: ${{ !inputs.skip_version_bump }}
with:
ref: ${{ needs.update-build-version.outputs.commit-hash }}
submodules: recursive
- uses: actions/checkout@v4
if: ${{ inputs.skip_version_bump && inputs.source_branch != '' }}
with:
ref: ${{ inputs.source_branch }}
submodules: recursive
- uses: actions/checkout@v4
if: ${{ inputs.skip_version_bump && inputs.source_branch == '' }}
with:
submodules: recursive
# Node first so we can download/extract/verify; no yarn install here (we use the tarball to avoid running install in this job).
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Download node_modules tarball
uses: actions/download-artifact@v4
with:
name: node-modules-${{ inputs.build_name }}-${{ matrix.platform }}
- name: Extract tarball (preserves symlinks)
run: |
echo "📦 Extracting tarball..."
tar -xzf node-modules-${{ matrix.platform }}.tar.gz
rm node-modules-${{ matrix.platform }}.tar.gz
echo "✅ Tarball extracted"
- name: Verify artifacts and symlinks
run: |
echo "✅ Verifying artifacts..."
if [ ! -d "node_modules" ]; then
echo "❌ node_modules not found"
exit 1
fi
if [ ! -f "app/core/InpageBridgeWeb3.js" ]; then
echo "❌ InpageBridgeWeb3.js not found"
exit 1
fi
echo "📦 node_modules size: $(du -sh node_modules | cut -f1)"
# Verify symlinks in .bin directory
echo "🔍 Checking .bin symlinks..."
if [ -e "node_modules/.bin/react-native" ]; then
echo "✅ react-native symlink exists and target is valid"
find node_modules/.bin -maxdepth 1 -name 'react-native' -ls
else
echo "❌ react-native symlink missing or broken"
find node_modules/.bin -maxdepth 1 -ls | head -10
exit 1
fi
# Check React Native scripts
if [ -d "node_modules/react-native/scripts" ]; then
echo "✅ React Native scripts found"
else
echo "❌ React Native scripts missing"
exit 1
fi
echo "✅ All artifacts verified with working symlinks!"
# iOS only: Ruby + CocoaPods + Xcode (no yarn install; node_modules from tarball). Signing is in Configure signing certificates below.
- name: Setup Ruby (iOS)
if: matrix.platform == 'ios'
uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb #v1
with:
ruby-version: '3.2.9'
working-directory: ios
bundler-cache: true
- name: Select Xcode (iOS)
if: matrix.platform == 'ios'
run: |
sudo xcodes select 26.3
xcodebuild -version
# TapAndPay SDK Setup (Android only)
- name: Clone TapAndPay SDK
if: |
matrix.platform == 'android' &&
needs.prepare.outputs.tap_and_pay_sdk_repo_ssh != ''
run: |
if [ -z "$TAP_AND_PAY_SDK_SSH_KEY" ]; then
echo "⚠️ TAP_AND_PAY_SDK_SSH_KEY not set, skipping TapAndPay SDK clone"
exit 0
fi
mkdir -p ~/.ssh
echo "$TAP_AND_PAY_SDK_SSH_KEY" | base64 -d | tr -d '\r' > ~/.ssh/tap_and_pay_key
echo "" >> ~/.ssh/tap_and_pay_key
chmod 600 ~/.ssh/tap_and_pay_key
trap 'rm -f ~/.ssh/tap_and_pay_key' EXIT
ssh-keyscan github.com >> ~/.ssh/known_hosts 2>/dev/null
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/tap_and_pay_key
echo "📦 Cloning TapAndPay SDK into android/libs/..."
git clone --depth 1 "$TAP_AND_PAY_SDK_REPO_SSH" /tmp/tap-and-pay-sdk
mkdir -p android/libs
cp -r /tmp/tap-and-pay-sdk/* android/libs/
rm -rf /tmp/tap-and-pay-sdk
ssh-add -D
eval "$(ssh-agent -k)"
echo "✅ TapAndPay SDK installed to android/libs/"
env:
TAP_AND_PAY_SDK_SSH_KEY: ${{ secrets.TAP_AND_PAY_SDK_SSH_KEY }}
TAP_AND_PAY_SDK_REPO_SSH: ${{ needs.prepare.outputs.tap_and_pay_sdk_repo_ssh }}
- name: Apply build config
run: |
# Load env vars from builds.yml (this step only)
eval "$(node scripts/apply-build-config.js ${{ inputs.build_name }} --export)"
# Persist to GITHUB_ENV so later steps (e.g. Build) see CONFIGURATION, IS_SIM_BUILD, etc.
node scripts/apply-build-config.js ${{ inputs.build_name }} --export-github-env >> "$GITHUB_ENV"
# Generate build-env.json capturing actual env values used in this build (non-critical)
node scripts/apply-build-config.js ${{ inputs.build_name }} --write-build-env || true
- name: Validate secrets
env:
CONFIG_SECRETS: ${{ needs.prepare.outputs.secrets_json }}
SECRETS_JSON: ${{ toJSON(secrets) }}
run: node scripts/validate-secrets-from-config.js
# iOS: Install Pods here so generated paths match this runner (setup-node-modules skips pod install with --no-install-pods).
- name: Install CocoaPods dependencies (iOS)
if: matrix.platform == 'ios'
env:
BUNDLE_GEMFILE: ios/Gemfile
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: |
node -e "require('fs').writeFileSync('ios/debug.xcconfig',''); require('fs').writeFileSync('ios/release.xcconfig','');"
yarn pod:install
- name: Set secrets
env:
CONFIG_SECRETS: ${{ needs.prepare.outputs.secrets_json }}
ALL_SECRETS: ${{ toJSON(secrets) }}
run: node scripts/set-secrets-from-config.js
# Android only: minimal env (SDK is pre-installed on Cirrus runner)
- name: Set Android environment variables
if: matrix.platform == 'android'
run: |
{
echo "ANDROID_HOME=/opt/android-sdk"
echo "ANDROID_SDK_ROOT=/opt/android-sdk"
} >> "$GITHUB_ENV"
- name: Setup Java
if: matrix.platform == 'android'
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
# iOS: Clean up any existing keychains from previous runs
- name: Clean up existing keychains
if: matrix.platform == 'ios' && needs.prepare.outputs.signing_aws_role != ''
run: |
KEYCHAIN_PATH="$RUNNER_TEMP/app-signing.keychain-db"
if [ -f "$KEYCHAIN_PATH" ]; then
echo "🧹 Removing existing keychain..."
security delete-keychain "$KEYCHAIN_PATH" || true
fi
# Signing: uses role + secret from builds.yml (skipped when builds.yml omits signing, e.g. simulator-only flask-dev / qa-dev)
- name: Configure signing certificates
if: needs.prepare.outputs.signing_aws_role != ''
uses: ./.github/actions/configure-signing
with:
aws-role-to-assume: ${{ needs.prepare.outputs.signing_aws_role }}
aws-region: 'us-east-2'
platform: ${{ matrix.platform }}
aws-secret-name: ${{ needs.prepare.outputs.signing_aws_secret }}
android-keystore-path: ${{ needs.prepare.outputs.signing_android_keystore_path }}
# iOS: Configure Node path for Xcode build scripts (React Native Codegen)
- name: Configure Node path for Xcode
if: matrix.platform == 'ios'
run: |
NODE_BINARY=$(command -v node)
echo "Node binary: $NODE_BINARY"
echo "export NODE_BINARY=\"$NODE_BINARY\"" > ios/.xcode.env.local
echo "✅ Created ios/.xcode.env.local"
cat ios/.xcode.env.local
node --version
# Sentry: build.sh defaults SENTRY_DISABLE_AUTO_UPLOAD=true; set false only when opted in.
- name: Configure Sentry upload
env:
UPLOAD_TO_SENTRY: ${{ inputs.upload_to_sentry }}
run: |
if [ "$UPLOAD_TO_SENTRY" = "true" ]; then
echo "SENTRY_DISABLE_AUTO_UPLOAD=false" >> "$GITHUB_ENV"
echo "✅ Sentry auto-upload enabled for this build"
else
echo "SENTRY_DISABLE_AUTO_UPLOAD=true" >> "$GITHUB_ENV"
echo "ℹ️ Sentry auto-upload disabled"
fi
# Build with retry logic. Timeouts: 55min per attempt, 115min total for step, 120min job
- name: Build ${{ matrix.platform }}
timeout-minutes: 115
env:
GIT_BRANCH: ${{ inputs.source_branch || github.ref_name }}
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 55
max_attempts: 2
retry_wait_seconds: 60
command: |
export NODE_OPTIONS='--max-old-space-size=4096'
export METRO_MAX_WORKERS='4'
SCRIPT_BASE="${{ needs.prepare.outputs.script_name }}"
SCRIPT_NAME="build:${{ matrix.platform }}:${SCRIPT_BASE//-/:}"
yarn "$SCRIPT_NAME"
# Rename build artifacts (ios_simulator_path / ios_ipa_path / ios_archive_path / android_*_path outputs)
- name: Rename ${{ matrix.platform }} artifacts
if: success()
id: rename
run: node scripts/rename-artifacts.js ${{ matrix.platform }}
# Upload build artifacts (only if build succeeded)
- name: Upload iOS simulator app
if: matrix.platform == 'ios' && env.IS_SIM_BUILD == 'true'
uses: actions/upload-artifact@v4
with:
name: ios-app-${{ inputs.build_name }}
path: ${{ steps.rename.outputs.ios_simulator_path }}
if-no-files-found: error
- name: Upload iOS IPA
if: matrix.platform == 'ios' && (env.IS_SIM_BUILD != 'true' || env.IS_DEVICE_BUILD == 'true')
uses: actions/upload-artifact@v4
with:
name: ios-ipa-${{ inputs.build_name }}
path: ${{ steps.rename.outputs.ios_ipa_path }}
if-no-files-found: error
- name: Upload iOS xcarchive
if: matrix.platform == 'ios' && (env.IS_SIM_BUILD != 'true' || env.IS_DEVICE_BUILD == 'true')
uses: actions/upload-artifact@v4
with:
name: ios-xcarchive-${{ inputs.build_name }}
path: ${{ steps.rename.outputs.ios_archive_path }}
if-no-files-found: error
- name: Upload iOS sourcemap
if: matrix.platform == 'ios' && (env.IS_SIM_BUILD != 'true' || env.IS_DEVICE_BUILD == 'true')
uses: actions/upload-artifact@v4
with:
name: ios-sourcemaps-${{ inputs.build_name }}
path: ${{ steps.rename.outputs.ios_sourcemap_path }}
if-no-files-found: warn
# Dev builds (CONFIGURATION=Debug): APK + test APK (for E2E)
- name: Upload Android APK (dev)
if: matrix.platform == 'android' && env.CONFIGURATION == 'Debug'
uses: actions/upload-artifact@v4
with:
name: android-apk-${{ inputs.build_name }}
path: ${{ steps.rename.outputs.android_apk_path }}
if-no-files-found: error
- name: Upload Android test APK (dev)
if: matrix.platform == 'android' && env.CONFIGURATION == 'Debug' && steps.rename.outputs.android_test_apk_path != ''
uses: actions/upload-artifact@v4
with:
name: android-test-apk-${{ inputs.build_name }}
path: ${{ steps.rename.outputs.android_test_apk_path }}
if-no-files-found: warn
# Release builds: APK and AAB as separate artifacts
- name: Upload Android APK (release)
if: matrix.platform == 'android' && env.CONFIGURATION != 'Debug'
uses: actions/upload-artifact@v4
with:
name: android-apk-${{ inputs.build_name }}
path: ${{ steps.rename.outputs.android_apk_path }}
if-no-files-found: error
- name: Upload Android AAB
if: matrix.platform == 'android' && env.CONFIGURATION != 'Debug'
uses: actions/upload-artifact@v4
with:
name: android-aab-${{ inputs.build_name }}
path: ${{ steps.rename.outputs.android_aab_path }}
if-no-files-found: error
- name: Upload Android sourcemaps
if: matrix.platform == 'android' && env.CONFIGURATION != 'Debug'
uses: actions/upload-artifact@v4
with:
name: android-sourcemaps-${{ inputs.build_name }}
path: ${{ steps.rename.outputs.android_sourcemap_dir }}
if-no-files-found: warn
- name: Upload build environment JSON
if: success()
uses: actions/upload-artifact@v4
with:
name: build-env-${{ inputs.build_name }}-${{ matrix.platform }}
path: build-env.json
if-no-files-found: warn
# Single fan-in job so workflow_call outputs work with matrix `build` (matrix jobs cannot feed workflow outputs directly).
emit-build-metadata:
name: Emit build metadata
needs: [prepare, build]
if: ${{ !failure() && !cancelled() && needs.prepare.result == 'success' && needs.build.result == 'success' }}
runs-on: ${{ inputs.runner_provider == 'namespace' && 'namespace-profile-metamask-ci-linux' || 'ubuntu-latest' }}
outputs:
checkout_ref: ${{ steps.meta.outputs.checkout_ref }}
built_commit_sha: ${{ steps.meta.outputs.built_commit_sha }}
semantic_version: ${{ steps.meta.outputs.semantic_version }}
android_version_code: ${{ steps.meta.outputs.android_version_code }}
ios_version_code: ${{ steps.meta.outputs.ios_version_code }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ needs.prepare.outputs.checkout_ref_for_setup }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Read metadata from tree at built ref
id: meta
run: |
REF="${{ needs.prepare.outputs.checkout_ref_for_setup }}"
{
echo "checkout_ref=$REF"
echo "built_commit_sha=$(git rev-parse HEAD)"
} >> "$GITHUB_OUTPUT"
./scripts/get-build-metadata.sh --ci