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:
|
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:
|
||||||
|
|||||||
Generated
+1
-1
@@ -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,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "obikmer"
|
name = "obikmer"
|
||||||
version = "1.1.24"
|
version = "1.1.25"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
|
|||||||
Reference in New Issue
Block a user