Skip to content

Commit 355a1b2

Browse files
committed
ci(docker): install bindgen-cli for *BSD builds
1 parent e14acf9 commit 355a1b2

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
FROM rust-x86_64-unknown-freebsd
22

3+
# Building `aws-lc-rs` for Linux depends on `gcc-multilib`, `libclang` and `bindgen`.
4+
# See: https://aws.github.io/aws-lc-rs/requirements/linux
5+
RUN apt-get update && apt-get install -qy gcc-multilib libclang-dev \
6+
# We have to use manual installation here, otherwise the installation script will fail with
7+
# 'System glibc version (`2.27') is too old; checking alternatives'.
8+
&& cargo install --force --locked bindgen-cli \
9+
&& mv $HOME/.cargo/bin/bindgen /usr/bin
10+
311
ENV CC_x86_64_unknown_freebsd=x86_64-unknown-freebsd12-clang \
412
CARGO_TARGET_X86_64_UNKNOWN_FREEBSD_LINKER=x86_64-unknown-freebsd12-clang

ci/docker/x86_64-unknown-illumos/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
FROM rust-x86_64-unknown-illumos
22

3+
# Building `aws-lc-rs` for Linux depends on `gcc-multilib`, `libclang` and `bindgen`.
4+
# See: https://aws.github.io/aws-lc-rs/requirements/linux
5+
RUN apt-get update && apt-get install -qy gcc-multilib libclang-dev \
6+
# We have to use manual installation here, otherwise the installation script will fail with
7+
# 'System glibc version (`2.27') is too old; checking alternatives'.
8+
&& cargo install --force --locked bindgen-cli \
9+
&& mv $HOME/.cargo/bin/bindgen /usr/bin
10+
311
ENV \
412
AR_x86_64_unknown_illumos="x86_64-illumos-ar" \
513
RANLIB_x86_64_unknown_illumos="x86_64-illumos-ranlib" \
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
FROM rust-x86_64-unknown-netbsd
22

3+
# Building `aws-lc-rs` for Linux depends on `gcc-multilib`, `libclang` and `bindgen`.
4+
# See: https://aws.github.io/aws-lc-rs/requirements/linux
5+
RUN apt-get update && apt-get install -qy gcc-multilib libclang-dev \
6+
# We have to use manual installation here, otherwise the installation script will fail with
7+
# 'System glibc version (`2.27') is too old; checking alternatives'.
8+
&& cargo install --force --locked bindgen-cli \
9+
&& mv $HOME/.cargo/bin/bindgen /usr/bin
10+
311
ENV CARGO_TARGET_X86_64_UNKNOWN_NETBSD_LINKER=x86_64--netbsd-gcc-sysroot

0 commit comments

Comments
 (0)