Skip to content

Commit 3f069ab

Browse files
committed
chore: test on linux arm64
1 parent 6c3cf47 commit 3f069ab

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/run-all-tests-pr.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
runs-on: ${{ matrix.os }}
4343
strategy:
4444
matrix:
45-
os: [windows-latest, ubuntu-latest, macos-latest]
45+
os: [windows-latest, ubuntu-latest, ubuntu-24.04-arm, macos-latest]
4646
node: [20]
4747
include:
4848
# Node 14 runtime compatibility is covered by end-to-end tests.
@@ -85,7 +85,7 @@ jobs:
8585
strategy:
8686
fail-fast: true
8787
matrix:
88-
os: [ubuntu-latest, macos-latest, windows-latest]
88+
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest]
8989
steps:
9090
- name: checkout
9191
uses: actions/checkout@v6
@@ -107,13 +107,14 @@ jobs:
107107

108108
# Run with different node.js versions
109109
# all in one job to avoid rebuilding
110+
# Node 14 only has binaries for x64 runners
110111
- name: "node 14"
111-
if: matrix.os != 'macos-latest'
112+
if: matrix.os == 'ubuntu-latest' || matrix.os == 'windows-latest'
112113
uses: actions/setup-node@v6
113114
with:
114115
node-version: 14
115116
- name: run tests (node 14)
116-
if: matrix.os != 'macos-latest'
117+
if: matrix.os == 'ubuntu-latest' || matrix.os == 'windows-latest'
117118
run: cd end-to-end && npx jest
118119
shell: bash
119120

packages/fuzzer/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ if (NOT CMAKE_JS_INC)
3535
endif ()
3636

3737
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
38-
set(LIBFUZZER_TARGET "clang_rt.fuzzer_no_main-x86_64")
38+
if(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|arm64")
39+
set(LIBFUZZER_TARGET "clang_rt.fuzzer_no_main-aarch64")
40+
else()
41+
set(LIBFUZZER_TARGET "clang_rt.fuzzer_no_main-x86_64")
42+
endif()
3943
set(LIBFUZZER_STATIC_LIB_PATH "lib/linux/lib${LIBFUZZER_TARGET}.a")
4044
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
4145
set(LIBFUZZER_TARGET "clang_rt.fuzzer_no_main_osx")

0 commit comments

Comments
 (0)