Skip to content

Commit 4f1711e

Browse files
committed
Add job in the check workflow to initialize and build the MacOS test app
1 parent e67510a commit 4f1711e

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/check.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,38 @@ jobs:
107107
# TODO: Enable release mode when it works
108108
# run: npm run test:ios -- --mode Release
109109
working-directory: apps/test-app
110+
test-macos:
111+
# Disabling this on main for now, as initializing the template takes a long time and
112+
# we don't have macOS-specific code yet
113+
if: contains(github.event.pull_request.labels.*.name, 'MacOS 💻')
114+
name: Test app (macOS)
115+
runs-on: macos-latest
116+
steps:
117+
- uses: actions/checkout@v4
118+
- uses: actions/setup-node@v4
119+
with:
120+
node-version: lts/jod
121+
- name: Set up JDK 17
122+
uses: actions/setup-java@v3
123+
with:
124+
java-version: "17"
125+
distribution: "temurin"
126+
- name: Setup Android SDK
127+
uses: android-actions/setup-android@v3
128+
with:
129+
packages: tools platform-tools ndk;${{ env.NDK_VERSION }}
130+
- run: npm ci
131+
- run: npm run bootstrap
132+
env:
133+
CMAKE_RN_TRIPLETS: arm64-apple-darwin
134+
FERRIC_TARGETS: aarch64-apple-darwin
135+
- run: npm run init-macos-test-app
136+
- run: pod install --project-directory=macos
137+
working-directory: apps/macos-test-app
138+
- name: Build MacOS test app
139+
run: npx react-native build-macos
140+
working-directory: apps/macos-test-app
141+
# TODO: Run the app eventually
110142
test-android:
111143
if: github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'Android 🤖')
112144
name: Test app (Android)

0 commit comments

Comments
 (0)