Skip to content

Commit

Permalink
fix: fix macos arm64 build (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed May 18, 2022
1 parent ab5486f commit 1ebefde
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/CI.yml
Expand Up @@ -43,9 +43,15 @@ jobs:
npm run build -- --target x86_64-unknown-linux-gnu --zig --zig-abi-suffix 2.12 &&
llvm-strip -x *.node
- host: macos-latest
architecture: x64
target: aarch64-apple-darwin
build: |
npm run build --target=aarch64-apple-darwin
sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*;
export CC=$(xcrun -f clang);
export CXX=$(xcrun -f clang++);
SYSROOT=$(xcrun --sdk macosx --show-sdk-path);
export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT";
npm run build -- --target aarch64-apple-darwin
strip -x *.node
- host: ubuntu-latest
architecture: x64
Expand Down

0 comments on commit 1ebefde

Please sign in to comment.