From 30e7909f1b51b05da5441a42465d026688ed3813 Mon Sep 17 00:00:00 2001 From: rami3l Date: Wed, 4 Dec 2024 13:58:39 +0800 Subject: [PATCH] ci(docker): install `bindgen-cli` for *BSD builds --- ci/docker/x86_64-unknown-freebsd/Dockerfile | 3 +++ ci/docker/x86_64-unknown-illumos/Dockerfile | 3 +++ ci/docker/x86_64-unknown-netbsd/Dockerfile | 3 +++ 3 files changed, 9 insertions(+) diff --git a/ci/docker/x86_64-unknown-freebsd/Dockerfile b/ci/docker/x86_64-unknown-freebsd/Dockerfile index ea9f59d73f..37c9668009 100644 --- a/ci/docker/x86_64-unknown-freebsd/Dockerfile +++ b/ci/docker/x86_64-unknown-freebsd/Dockerfile @@ -1,4 +1,7 @@ FROM rust-x86_64-unknown-freebsd +RUN curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-lang/rust-bindgen/releases/latest/download/bindgen-cli-installer.sh | sh \ + && mv $HOME/.cargo/bin/bindgen /usr/bin + ENV CC_x86_64_unknown_freebsd=x86_64-unknown-freebsd12-clang \ CARGO_TARGET_X86_64_UNKNOWN_FREEBSD_LINKER=x86_64-unknown-freebsd12-clang diff --git a/ci/docker/x86_64-unknown-illumos/Dockerfile b/ci/docker/x86_64-unknown-illumos/Dockerfile index 482c227058..eb708e4938 100644 --- a/ci/docker/x86_64-unknown-illumos/Dockerfile +++ b/ci/docker/x86_64-unknown-illumos/Dockerfile @@ -1,5 +1,8 @@ FROM rust-x86_64-unknown-illumos +RUN curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-lang/rust-bindgen/releases/latest/download/bindgen-cli-installer.sh | sh \ + && mv $HOME/.cargo/bin/bindgen /usr/bin + ENV \ AR_x86_64_unknown_illumos="x86_64-illumos-ar" \ RANLIB_x86_64_unknown_illumos="x86_64-illumos-ranlib" \ diff --git a/ci/docker/x86_64-unknown-netbsd/Dockerfile b/ci/docker/x86_64-unknown-netbsd/Dockerfile index 5c2f9b5b63..78871a0d67 100644 --- a/ci/docker/x86_64-unknown-netbsd/Dockerfile +++ b/ci/docker/x86_64-unknown-netbsd/Dockerfile @@ -1,3 +1,6 @@ FROM rust-x86_64-unknown-netbsd +RUN curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-lang/rust-bindgen/releases/latest/download/bindgen-cli-installer.sh | sh \ + && mv $HOME/.cargo/bin/bindgen /usr/bin + ENV CARGO_TARGET_X86_64_UNKNOWN_NETBSD_LINKER=x86_64--netbsd-gcc-sysroot