Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
matrix:
# a list of all the targets
include:
- TARGET: x86_64-unknown-linux-gnu # tested in a debian container on a mac
- TARGET: x86_64-unknown-linux-musl # Using MUSL for Linux
OS: ubuntu-24.04
- TARGET: x86_64-apple-darwin # tested on a mac
OS: macos-15
Expand All @@ -30,6 +30,7 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Cargo cache
uses: actions/cache@v4
with:
Expand All @@ -38,21 +39,23 @@ jobs:
./target
key: build-cargo-registry-${{matrix.TARGET}}

- name: Install and configure dependencies
run: |
# dependencies are only needed on ubuntu as that's the only place where
# we make cross-compilation
if [[ $OS =~ ^ubuntu.*$ ]]; then
sudo apt-get install -qq crossbuild-essential-arm64 crossbuild-essential-armhf
fi
- uses: mlugg/setup-zig@aa9ad5c14eb3452e235a441c4f9a8e89f20d97bd

- name: Install cargo-zigbuild
run: cargo install cargo-zigbuild

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
target: $TARGET

- name: Generate the artifacts
run: cargo build --release --target $TARGET
run: |
if [[ $TARGET == *-linux-musl ]]; then
cargo zigbuild --release --target $TARGET
else
cargo build --release --target $TARGET
fi

- name: Move files
run: |
Expand Down
Loading