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:
needs: create-release
runs-on: ubuntu-latest
container: joseluisq/rust-linux-darwin-builder:latest
defaults:
run:
working-directory: src
steps:
- uses: actions/checkout@v4
- name: Install Rust + zigbuild
- name: Add target and install jq
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 jq
pip install ziglang --quiet --break-system-packages
$HOME/.cargo/bin/cargo install cargo-zigbuild
$HOME/.cargo/bin/rustup target add aarch64-apple-darwin
rustup target add aarch64-apple-darwin
apt-get update -qq && apt-get install -y -qq jq
- name: Cache cargo registry
uses: actions/cache@v4
@@ -113,8 +110,10 @@ jobs:
- name: Build macOS binary
env:
MACOSX_DEPLOYMENT_TARGET: "11.0"
run: cargo zigbuild --release --target aarch64-apple-darwin11.0 --no-default-features
CC: aarch64-apple-darwin22.4-clang
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
env: