Skip to content

Commit

Permalink
fixup! ci(docker): install bindgen-cli for *BSD builds
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l committed Dec 4, 2024
1 parent 30e7909 commit 43358b2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion ci/docker/x86_64-unknown-freebsd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
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 \
# Building `aws-lc-rs` for Linux depends on `gcc-multilib`, `libclang` and `bindgen`.
# See: https://aws.github.io/aws-lc-rs/requirements/linux
RUN apt-get update && apt-get install -qy gcc-multilib libclang-dev \
&& 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 \
Expand Down
5 changes: 4 additions & 1 deletion ci/docker/x86_64-unknown-illumos/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
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 \
# Building `aws-lc-rs` for Linux depends on `gcc-multilib`, `libclang` and `bindgen`.
# See: https://aws.github.io/aws-lc-rs/requirements/linux
RUN apt-get update && apt-get install -qy gcc-multilib libclang-dev \
&& 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 \
Expand Down
5 changes: 4 additions & 1 deletion ci/docker/x86_64-unknown-netbsd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
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 \
# Building `aws-lc-rs` for Linux depends on `gcc-multilib`, `libclang` and `bindgen`.
# See: https://aws.github.io/aws-lc-rs/requirements/linux
RUN apt-get update && apt-get install -qy gcc-multilib libclang-dev \
&& 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

0 comments on commit 43358b2

Please sign in to comment.