Use the ORT rc.11 library location variable.
All checks were successful
Tagged release / prepare-release (push) Successful in 3m3s
Tagged release / build-linux-x64 (push) Successful in 36m54s
Tagged release / build-macos (push) Successful in 57m53s
Tagged release / build-linux-arm64 (push) Successful in 34m37s
Tagged release / build-windows (push) Successful in 34m26s
Tagged release / publish-release (push) Successful in 3m0s
All checks were successful
Tagged release / prepare-release (push) Successful in 3m3s
Tagged release / build-linux-x64 (push) Successful in 36m54s
Tagged release / build-macos (push) Successful in 57m53s
Tagged release / build-linux-arm64 (push) Successful in 34m37s
Tagged release / build-windows (push) Successful in 34m26s
Tagged release / publish-release (push) Successful in 3m0s
This commit is contained in:
@@ -91,7 +91,7 @@ jobs:
|
||||
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_LIB_LOCATION="$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
|
||||
|
||||
@@ -131,7 +131,7 @@ fn tagged_releases_are_built_and_packaged_with_rust_tools() {
|
||||
"cargo-zigbuild",
|
||||
"macos-linker-alias",
|
||||
"macos-x64-runtime",
|
||||
"ORT_LIB_PATH",
|
||||
"ORT_LIB_LOCATION",
|
||||
"ORT_PREFER_DYNAMIC_LINK",
|
||||
"-Lnative=target/macos-linker",
|
||||
"-Wl,-rpath,@executable_path ",
|
||||
@@ -167,6 +167,10 @@ fn tagged_releases_are_built_and_packaged_with_rust_tools() {
|
||||
!workflow.contains("-Wl,-U,"),
|
||||
"Zig's Darwin linker does not support ld64's symbol-specific -U option"
|
||||
);
|
||||
assert!(
|
||||
!workflow.contains("ORT_LIB_PATH"),
|
||||
"ORT rc.11 expects its custom runtime in ORT_LIB_LOCATION"
|
||||
);
|
||||
for forbidden in ["python", "curl ", "hdiutil", "makensis", "tar -"] {
|
||||
assert!(
|
||||
!workflow.contains(forbidden),
|
||||
|
||||
Reference in New Issue
Block a user