ci: update macOS ARM64 build workflow and bump obikmer version
Release / create-release (push) Successful in 2m27s
Release / build-linux-x86_64 (push) Successful in 7m52s
Release / build-macos-arm64 (push) Failing after 8m53s
CI / build (pull_request) Successful in 5m31s

Replace manual Zig/cargo-zigbuild setup with a pre-configured Docker container (`joseluisq/rust-linux-darwin-builder`). Use explicit Clang cross-compilers for native macOS ARM64 compilation. Bump the `obikmer` package version to 1.1.25.
This commit is contained in:
Eric Coissac
2026-06-23 14:59:35 +02:00
parent a4bbf607b7
commit 136cd89efb
3 changed files with 10 additions and 11 deletions
+8 -9
View File
@@ -86,20 +86,17 @@ jobs:
build-macos-arm64: build-macos-arm64:
needs: create-release needs: create-release
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: joseluisq/rust-linux-darwin-builder:latest
defaults: defaults:
run: run:
working-directory: src working-directory: src
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install Rust + zigbuild - name: Add target and install jq
run: | run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable rustup target add aarch64-apple-darwin
echo "$HOME/.cargo/bin" >> $GITHUB_PATH apt-get update -qq && apt-get install -y -qq jq
sudo apt-get update -qq && sudo apt-get install -y -qq jq
pip install ziglang --quiet --break-system-packages
$HOME/.cargo/bin/cargo install cargo-zigbuild
$HOME/.cargo/bin/rustup target add aarch64-apple-darwin
- name: Cache cargo registry - name: Cache cargo registry
uses: actions/cache@v4 uses: actions/cache@v4
@@ -113,8 +110,10 @@ jobs:
- name: Build macOS binary - name: Build macOS binary
env: env:
MACOSX_DEPLOYMENT_TARGET: "11.0" CC: aarch64-apple-darwin22.4-clang
run: cargo zigbuild --release --target aarch64-apple-darwin11.0 --no-default-features CXX: aarch64-apple-darwin22.4-clang++
CARGO_TARGET_AARCH64_APPLE_DARWIN_LINKER: aarch64-apple-darwin22.4-clang
run: cargo build --release --target aarch64-apple-darwin
- name: Prepare and upload artifact - name: Prepare and upload artifact
env: env:
+1 -1
View File
@@ -1704,7 +1704,7 @@ dependencies = [
[[package]] [[package]]
name = "obikmer" name = "obikmer"
version = "1.1.24" version = "1.1.25"
dependencies = [ dependencies = [
"clap", "clap",
"csv", "csv",
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "obikmer" name = "obikmer"
version = "1.1.24" version = "1.1.25"
edition = "2024" edition = "2024"
[[bin]] [[bin]]