From ed332187c23cd7fabb3c310dea25e8bb7c128ea7 Mon Sep 17 00:00:00 2001 From: Artem Goncharov Date: Tue, 2 Jun 2026 15:19:07 +0200 Subject: [PATCH] chore: Fix release binaries build - add platform specific dependencies - ensure 'precise-builds' is on for cargo-dist - disable lto to bypass the macos build issues --- Cargo.toml | 4 +++- dist-workspace.toml | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index c4b03c696..e7fa3e19b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -121,7 +121,9 @@ debug = 0 # The profile that 'cargo dist' will build with [profile.dist] inherits = "release" -lto = "thin" +# rust 1.96 use llvm 1.22 (bitcode) while Mac does not have support for it +lto = false +#lto = "thin" [workspace.lints.clippy] result_large_err = "allow" diff --git a/dist-workspace.toml b/dist-workspace.toml index 312ffaa47..e98a4949f 100644 --- a/dist-workspace.toml +++ b/dist-workspace.toml @@ -27,6 +27,7 @@ github-attestations = true # Path that installers should place binaries in install-path = "CARGO_HOME" github-build-setup = "../parts/build-setup.yml" +precise-builds = true [dist.github-custom-runners] global = "ubuntu-latest" @@ -36,3 +37,16 @@ x86_64-apple-darwin = "macos-latest" x86_64-unknown-linux-gnu = "ubuntu-latest" x86_64-unknown-linux-musl = "ubuntu-latest" x86_64-pc-windows-msvc = "windows-2025" + +[dist.dependencies.apt] +libudev1 = '*' +libssl-dev = '*' +librust-libudev-sys-dev = '*' +musl-tools = '*' + +[dist.dependencies.homebrew] +openssl = '*' +pkg-config = '*' + +[dist.dependencies.chocolatey] +openssl = '*'