Skip to content

Commit e568b47

Browse files
committed
chore(js): Package for aarch64-apple-darwin
1 parent 8ade631 commit e568b47

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,16 @@ jobs:
183183
build: |
184184
yarn build
185185
strip -x *.node
186+
- host: macos-12
187+
target: aarch64-apple-darwin
188+
build: |
189+
sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*;
190+
export CC=$(xcrun -f clang);
191+
export CXX=$(xcrun -f clang++);
192+
SYSROOT=$(xcrun --sdk macosx --show-sdk-path);
193+
export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT";
194+
yarn build --target aarch64-apple-darwin
195+
strip -x *.node
186196
- host: windows-2022
187197
build: yarn build
188198
target: x86_64-pc-windows-msvc

.github/workflows/javascript-release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ jobs:
1616
build: |
1717
yarn build
1818
strip -x *.node
19+
- host: macos-12
20+
target: aarch64-apple-darwin
21+
build: |
22+
sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*;
23+
export CC=$(xcrun -f clang);
24+
export CXX=$(xcrun -f clang++);
25+
SYSROOT=$(xcrun --sdk macosx --show-sdk-path);
26+
export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT";
27+
yarn build --target aarch64-apple-darwin
28+
strip -x *.node
1929
- host: windows-2022
2030
build: yarn build
2131
target: x86_64-pc-windows-msvc

bindings/javascript/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [Unreleased]
44

5+
### Added
6+
7+
- Package for `aarch64-apple-darwin`.
8+
59
### Changed
610

711
- Avoid loading additional dependencies for WASM resulting in ~6% module size reduction.

0 commit comments

Comments
 (0)