Skip to content

Commit

Permalink
Merge pull request #41 from AikidoSec/musl
Browse files Browse the repository at this point in the history
Use zig linker for compatibility with glibc
  • Loading branch information
willem-delbare authored Nov 7, 2024
2 parents 91c8d1d + 94591cc commit 124ecb7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
2 changes: 0 additions & 2 deletions .cargo/config.toml

This file was deleted.

37 changes: 19 additions & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v1

- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
target: x86_64-unknown-linux-gnu
override: true
- name: Install ziglang
uses: mlugg/setup-zig@v1

- name: Install latest rust and cargo-zigbuild
run: |
rustup update --no-self-update stable
rustup default stable
cargo install --locked cargo-zigbuild
- name: Build for linux
run:
cargo build --release --target x86_64-unknown-linux-gnu
cargo zigbuild --target x86_64-unknown-linux-gnu.2.17 --release

- name: Prepare release
run: |
cd target/x86_64-unknown-linux-gnu/release
Expand All @@ -55,19 +57,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v1

- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
target: aarch64-unknown-linux-gnu
override: true
- name: Install ziglang
uses: mlugg/setup-zig@v1

- name: Install latest rust and cargo-zigbuild
run: |
rustup update --no-self-update stable
rustup default stable
cargo install --locked cargo-zigbuild
- name: Build for Linux
run: |
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y gcc-aarch64-linux-gnu
cargo build --release --target aarch64-unknown-linux-gnu
cargo zigbuild --target aarch64-unknown-linux-gnu.2.17 --release
- name: Prepare release
run: |
Expand Down

0 comments on commit 124ecb7

Please sign in to comment.