ci: update macOS ARM64 build workflow and bump obikmer version
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user