From d30a4efd9bd77a07093a4eb41e0612e350d6afc6 Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Mon, 22 Jun 2026 15:17:42 +0200 Subject: [PATCH] ci: switch to Zig build toolchain and bump obikmer to 1.1.7 Replaces the musl-based static Linux build toolchain with Zig (`ziglang` via pip and `cargo-zigbuild`), removing `musl-tools` dependencies. The workflow now invokes `cargo zigbuild` for cross-compiling the static binary. Additionally, bumps the `obikmer` crate version to 1.1.7. --- .gitea/workflows/release.yml | 10 ++++++---- src/Cargo.lock | 2 +- src/obikmer/Cargo.toml | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 2807ba2..d092a4e 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -3,7 +3,7 @@ name: Release on: push: tags: - - 'v*' + - "v*" jobs: build-linux-static: @@ -14,11 +14,13 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install Rust + musl target + - name: Install Rust + zigbuild run: | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable echo "$HOME/.cargo/bin" >> $GITHUB_PATH - sudo apt-get update -qq && sudo apt-get install -y -qq musl-tools jq + sudo apt-get update -qq && sudo apt-get install -y -qq jq + pip install ziglang --quiet + $HOME/.cargo/bin/cargo install cargo-zigbuild $HOME/.cargo/bin/rustup target add x86_64-unknown-linux-musl - name: Cache cargo registry @@ -32,7 +34,7 @@ jobs: restore-keys: linux-musl-cargo- - name: Build static binary - run: cargo build --release --target x86_64-unknown-linux-musl + run: cargo zigbuild --release --target x86_64-unknown-linux-musl - name: Prepare artifact run: | diff --git a/src/Cargo.lock b/src/Cargo.lock index 73c688c..d2465bb 100644 --- a/src/Cargo.lock +++ b/src/Cargo.lock @@ -1704,7 +1704,7 @@ dependencies = [ [[package]] name = "obikmer" -version = "1.1.6" +version = "1.1.7" dependencies = [ "clap", "csv", diff --git a/src/obikmer/Cargo.toml b/src/obikmer/Cargo.toml index fc9fdc1..0405a69 100644 --- a/src/obikmer/Cargo.toml +++ b/src/obikmer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "obikmer" -version = "1.1.6" +version = "1.1.7" edition = "2024" [[bin]] -- 2.52.0