Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
ci: fix arm64 linker errors
Browse files Browse the repository at this point in the history
  • Loading branch information
strophy authored Mar 15, 2022
2 parents 1b40ae1 + 543d611 commit b954e50
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ rustflags = [ "-C", "target-feature=-crt-static" ]

[target.x86_64-unknown-linux-musl]
rustflags = [ "-C", "target-feature=-crt-static" ]

[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@ jobs:
node_arch: x64
compiler: musl
platform: unknown-linux
# Disabled since there are issues with linker
# - os: ubuntu-latest
# arch: aarch64
# node_arch: arm64
# compiler: gnu
# platform: unknown-linux
- os: ubuntu-latest
arch: aarch64
node_arch: arm64
compiler: gnu
platform: unknown-linux
- os: ubuntu-latest
arch: aarch64
node_arch: arm64
Expand Down
4 changes: 4 additions & 0 deletions node/docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ done
## Install multilib
apt update
apt install -y gcc-multilib
if [[ $target = "aarch64-unknown-linux-gnu" ]]
then
apt install -y gcc-aarch64-linux-gnu libstdc++-9-dev-arm64-cross
fi

## Install Node.JS
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
Expand Down

0 comments on commit b954e50

Please sign in to comment.