diff --git a/.github/workflows/prebuild.yaml b/.github/workflows/prebuild.yaml index 33d67e0ed..fbf00d03b 100644 --- a/.github/workflows/prebuild.yaml +++ b/.github/workflows/prebuild.yaml @@ -51,7 +51,7 @@ jobs: npm install nan . prebuild/macOS/preinstall.sh cp prebuild/macOS/binding.gyp binding.gyp - node-gyp rebuild -j 2 --arch=${{ runner.arch }} + node-gyp rebuild -j 2 --arch=${{ matrix.os.arch }} . prebuild/macOS/bundle.sh - name: Test binary diff --git a/prebuild/macOS/binding.gyp b/prebuild/macOS/binding.gyp index 00ae2ccbc..6f0940abe 100644 --- a/prebuild/macOS/binding.gyp +++ b/prebuild/macOS/binding.gyp @@ -23,7 +23,9 @@ 'defines': [ 'HAVE_GIF', 'HAVE_JPEG', - 'HAVE_RSVG' + 'HAVE_RSVG', + 'NAPI_DISABLE_CPP_EXCEPTIONS', + 'NODE_ADDON_API_ENABLE_MAYBE' ], 'libraries': [ '