forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 167
66 lines (59 loc) · 1.77 KB
/
microsoft-build-rntester.yml
File metadata and controls
66 lines (59 loc) · 1.77 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
name: Build RNTester
on:
workflow_call:
jobs:
build-rntester:
name: "${{ matrix.platform }}, ${{ matrix.arch }}"
runs-on: macos-26
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
platform: [macos, ios, visionos]
arch: [oldarch, newarch]
include:
# Platform-specific properties
- platform: macos
sdk: macosx
scheme: RNTester-macOS
packager_platform: macos
- platform: ios
sdk: iphonesimulator
scheme: RNTester
packager_platform: ios
- platform: visionos
sdk: xrsimulator
scheme: RNTester-visionOS
packager_platform: ios
# Architecture-specific properties
- arch: oldarch
new_arch_enabled: '0'
- arch: newarch
new_arch_enabled: '1'
steps:
- uses: actions/checkout@v4
with:
filter: blob:none
fetch-depth: 0
- name: Setup toolchain
uses: ./.github/actions/microsoft-setup-toolchain
with:
node-version: '22'
platform: ${{ matrix.platform }}
project-root: 'packages/rn-tester'
- name: Install npm dependencies
run: yarn install
- name: Install Pods
working-directory: packages/rn-tester
env:
RCT_NEW_ARCH_ENABLED: ${{ matrix.new_arch_enabled }}
run: |
set -eox pipefail
bundle install
bundle exec pod install --verbose
- name: Build ${{ matrix.scheme }}
env:
USE_CCACHE: 0
run: |
set -eox pipefail
.ado/scripts/xcodebuild.sh packages/rn-tester/RNTesterPods.xcworkspace ${{ matrix.sdk }} Debug ${{ matrix.scheme }} build