Use M1 runner to build arm64 macOS builds (#6868)

This commit is contained in:
Siarhei Fedartsou
2024-05-08 21:08:11 +02:00
committed by GitHub
parent a6dfff725b
commit 3254686933
4 changed files with 19 additions and 46 deletions
-5
View File
@@ -12,11 +12,6 @@ if [[ ${BUILD_TYPE} == "Debug" ]]; then
NPM_FLAGS='--debug'
fi
# append --target_arch in order to handle cross-compilation for Apple Silicon
if [[ "$ENABLE_APPLE_SILICON" == "ON" ]]; then
NPM_FLAGS="${NPM_FLAGS} --target_arch=arm64"
fi
echo "dumping binary meta..."
./node_modules/.bin/node-pre-gyp reveal $NPM_FLAGS