Skip to content

Commit

Permalink
fix(package-npm): use prebuildify-cross on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ObserverOfTime committed Dec 29, 2024
1 parent 0c430af commit 24dafb9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/package-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,13 @@ jobs:
cd - > /dev/null
done < <(find . -name grammar.js -not -path './node_modules/*' -not -path './.build/*')
- name: Build x64 binary
run: npm x -- prebuildify --arch x64 --target 20.9.0
run: npm x -- prebuildify --arch x64 -t 20.9.0 --strip
- name: Build arm64 binary
run: npm x -- prebuildify --arch arm64 --target 20.9.0
if: runner.os != 'Linux'
run: npm x -- prebuildify --arch arm64 -t 20.9.0 --strip
- name: Build arm64 binary
if: runner.os == 'Linux'
run: npm x -- prebuildify-cross -i linux-arm64 -t 20.9.0 --strip
- name: Upload binaries
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 24dafb9

Please sign in to comment.