Skip to content

Commit

Permalink
fix linux gnu
Browse files Browse the repository at this point in the history
  • Loading branch information
victorteokw committed Feb 2, 2024
1 parent 8f58404 commit 7e1b6bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ jobs:
target: x86_64-unknown-linux-gnu
build: |-
set -e &&
sudo apt-get update &&
sudo apt-get install perl libssl-dev pkg-config -y &&
export LDFLAGS="-L/usr/x86_64-unknown-linux-gnu/lib/gcc/x86_64-unknown-linux-gnu/4.8.5" &&
export CFLAGS="-fuse-ld=lld -mcrc -B/usr/x86_64-unknown-linux-gnu/lib/gcc/x86_64-unknown-linux-gnu/4.8.5 --sysroot=/usr/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/sysroot" &&
export CXXFLAGS="-fuse-ld=lld -mcrc -B/usr/x86_64-unknown-linux-gnu/lib/gcc/x86_64-unknown-linux-gnu/4.8.5 --sysroot=/usr/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/sysroot" &&
yarn build --target x86_64-unknown-linux-gnu &&
strip *.node
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
Expand Down

0 comments on commit 7e1b6bc

Please sign in to comment.