Skip to content

Commit 02ae255

Browse files
committed
Add job in the check workflow to initialize and build the MacOS test app
No need to Setup Android SDK Debugging with Copilot Pass --mode when building from CLI Install CMake 3.22 Fix bootstrap issue Trying a higher CMake version Remove debug info from workflow Build universal Darwin libraries Add missing x86_64-apple-darwin Rust target to macOS CI job (#298) * Initial plan * Add missing x86_64-apple-darwin Rust target to macOS job Co-authored-by: kraenhansen <1243959+kraenhansen@users.noreply.github.com> * Add only missing x86_64-apple-darwin target (aarch64 is host) Co-authored-by: kraenhansen <1243959+kraenhansen@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: kraenhansen <1243959+kraenhansen@users.noreply.github.com> Run MacOS test app Use package script to run all tests
1 parent f509d4a commit 02ae255

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/check.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,39 @@ 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+
# Install CMake 3 since 4.x may have compatibility issues with Hermes build system
127+
- name: Install compatible CMake version
128+
uses: jwlawson/actions-setup-cmake@v2
129+
with:
130+
cmake-version: "3.31.2"
131+
- run: rustup target add x86_64-apple-darwin
132+
- run: npm ci
133+
- run: npm run bootstrap
134+
env:
135+
CMAKE_RN_TRIPLETS: arm64;x86_64-apple-darwin
136+
FERRIC_TARGETS: aarch64-apple-darwin,x86_64-apple-darwin
137+
- run: npm run init-macos-test-app
138+
- run: pod install --project-directory=macos
139+
working-directory: apps/macos-test-app
140+
- name: Run MacOS test app
141+
run: npm run test:allTests -- --mode Release
142+
working-directory: apps/macos-test-app
110143
test-android:
111144
if: github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'Android 🤖')
112145
name: Test app (Android)

0 commit comments

Comments
 (0)