Skip to content

Commit

Permalink
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 7cf2bbe commit 30e7909
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ci/docker/x86_64-unknown-freebsd/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions ci/docker/x86_64-unknown-illumos/Dockerfile
Original file line number Diff line number Diff line change
@@ -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" \
Expand Down
3 changes: 3 additions & 0 deletions ci/docker/x86_64-unknown-netbsd/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 30e7909

Please sign in to comment.