Support Intel macOS with the last upstream runtime.
Some checks failed
Tagged release / prepare-release (push) Successful in 3m0s
Tagged release / build-linux-x64 (push) Successful in 35m32s
Tagged release / build-macos (push) Failing after 38m56s
Tagged release / build-windows (push) Has been cancelled
Tagged release / publish-release (push) Has been cancelled
Tagged release / build-linux-arm64 (push) Has been cancelled
Some checks failed
Tagged release / prepare-release (push) Successful in 3m0s
Tagged release / build-linux-x64 (push) Successful in 35m32s
Tagged release / build-macos (push) Failing after 38m56s
Tagged release / build-windows (push) Has been cancelled
Tagged release / publish-release (push) Has been cancelled
Tagged release / build-linux-arm64 (push) Has been cancelled
This commit is contained in:
@@ -47,8 +47,8 @@ jobs:
|
||||
runs-on: linux-arm64
|
||||
container: ghcr.io/rust-cross/cargo-zigbuild@sha256:82af75c41958c2af2787e8bedd912da7678a9438937e223e9d83d006d747b38b
|
||||
env:
|
||||
CARGO_TARGET_AARCH64_APPLE_DARWIN_RUSTFLAGS: -Lnative=target/macos-linker -C link-arg=-mmacosx-version-min=26.0 -C link-arg=-Wl,-rpath,@executable_path/../Resources -C link-arg=-Wl,-headerpad,0x1000 -C link-arg=-Wl,-undefined,dynamic_lookup
|
||||
CARGO_TARGET_X86_64_APPLE_DARWIN_RUSTFLAGS: -Lnative=target/macos-linker -C link-arg=-mmacosx-version-min=26.0 -C link-arg=-Wl,-rpath,@executable_path/../Resources -C link-arg=-Wl,-headerpad,0x1000 -C link-arg=-Wl,-undefined,dynamic_lookup
|
||||
CARGO_TARGET_AARCH64_APPLE_DARWIN_RUSTFLAGS: -Lnative=target/macos-linker -C link-arg=-mmacosx-version-min=26.0 -C link-arg=-Wl,-rpath,@executable_path -C link-arg=-Wl,-rpath,@executable_path/../Resources -C link-arg=-Wl,-headerpad,0x1000 -C link-arg=-Wl,-undefined,dynamic_lookup
|
||||
CARGO_TARGET_X86_64_APPLE_DARWIN_RUSTFLAGS: -Lnative=target/macos-linker -C link-arg=-mmacosx-version-min=26.0 -C link-arg=-Wl,-rpath,@executable_path -C link-arg=-Wl,-rpath,@executable_path/../Resources -C link-arg=-Wl,-headerpad,0x1000 -C link-arg=-Wl,-undefined,dynamic_lookup
|
||||
steps:
|
||||
- name: Check out the tag
|
||||
env:
|
||||
@@ -88,8 +88,17 @@ jobs:
|
||||
rest=${build#*|}
|
||||
build_target=${rest%%|*}
|
||||
platform=${rest#*|}
|
||||
cargo +${RUST_TOOLCHAIN} zigbuild --release --locked --target "$build_target" \
|
||||
--package bds-ui --package bds-cli --package bds-mcp
|
||||
if [ "$target" = x86_64-apple-darwin ]; then
|
||||
cargo +${RUST_TOOLCHAIN} run --locked --package bds-release -- \
|
||||
macos-x64-runtime "target/$target/release"
|
||||
ORT_LIB_PATH="$PWD/target/$target/release" \
|
||||
ORT_PREFER_DYNAMIC_LINK=1 \
|
||||
cargo +${RUST_TOOLCHAIN} zigbuild --release --locked --target "$build_target" \
|
||||
--package bds-ui --package bds-cli --package bds-mcp
|
||||
else
|
||||
cargo +${RUST_TOOLCHAIN} zigbuild --release --locked --target "$build_target" \
|
||||
--package bds-ui --package bds-cli --package bds-mcp
|
||||
fi
|
||||
rust_lib_dir=$(rustc +${RUST_TOOLCHAIN} --target "$target" --print target-libdir)
|
||||
cargo +${RUST_TOOLCHAIN} run --locked --package bds-release -- package \
|
||||
"$GITEA_REF_NAME" "target/$target/release" "$rust_lib_dir" "$platform" dist --upload
|
||||
|
||||
Reference in New Issue
Block a user