Skip to content

Commit

Permalink
use the musl gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
Joinhack committed Dec 28, 2024
1 parent cb41490 commit da3947f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/runtime_release_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,18 @@ jobs:
file: "bls-runtime/Cargo.toml"
key: "version"
value: "${{ steps.get_release.outputs.tag_name }}"
- name: install libssl-dev
- name: Prepared Tools
run: |
echo `pwd`
sudo apt install gcc-aarch64-linux-gnu
curl https://musl.cc/aarch64-linux-musl-cross.tgz -o aarch64-linux-musl-cross.tgz
tar xzvf aarch64-linux-musl-cross.tgz
sudo mv aarch64-linux-musl-cross /
echo `pwd`
sudo apt-get install build-essential gcc musl-tools musl-dev make perl dkms
sudo apt-get install build-essential gcc musl-tools musl-dev make perl dkms
sed "2 s/linker.*/linker = \"\/aarch64-linux-musl-cross\/bin\/aarch64-linux-musl-gcc\"/" .cargo/config.toml > tmp.toml
mv tmp.toml .cargo/config.toml
cat .cargo/config.toml
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
Expand All @@ -61,10 +64,10 @@ jobs:
run: |
rustup target add ${{ matrix.target }}
rustup target list
- name: Build runtime
uses: actions-rs/cargo@v1
env:
PATH: ${{ env.PATH }}:/aarch64-linux-musl-cross/bin
RUSTFLAGS: "-C link-arg=-L/usr/local/lib"
LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:/usr/local/lib"
DYLD_LIBRARY_PATH: "$DYLD_LIBRARY_PATH:/usr/local/lib"
Expand Down

0 comments on commit da3947f

Please sign in to comment.