Skip to content

Commit 4207838

Browse files
committed
ci(freebsd): fix build failure related to aws-lc
1 parent 11c008e commit 4207838

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.github/workflows/ci.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,9 @@ jobs:
13021302
usesh: true
13031303
copyback: false
13041304
prepare: |
1305-
pkg install -y git gmake bash sudo ca_root_nss
1305+
pkg install -y git gmake bash sudo \
1306+
`# The following packages are required by 'aws-lc-rs':` \
1307+
cmake-core llvm-devel-lite rust-bindgen-cli
13061308
run: |
13071309
echo "========="
13081310
echo "create non-root user and log into it"
@@ -1332,7 +1334,9 @@ jobs:
13321334
usesh: true
13331335
copyback: false
13341336
prepare: |
1335-
pkg install -y git gmake bash sudo ca_root_nss
1337+
pkg install -y git gmake bash sudo \
1338+
`# The following packages are required by 'aws-lc-rs':` \
1339+
cmake-core llvm-devel-lite rust-bindgen-cli
13361340
run: |
13371341
echo "========="
13381342
echo "create non-root user and log into it"

ci/actions-templates/freebsd-builds-template.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs: # skip-master skip-stable
2222
usesh: true
2323
copyback: false
2424
prepare: |
25-
pkg install -y git gmake bash sudo ca_root_nss
25+
pkg install -y git gmake bash sudo \
26+
`# The following packages are required by 'aws-lc-rs':` \
27+
cmake-core llvm-devel-lite rust-bindgen-cli
2628
run: |
2729
echo "========="
2830
echo "create non-root user and log into it"

ci/freebsd/script.bash

+5
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,9 @@ export CARGO_BUILD_JOBS=1
4040
export TARGET="x86_64-unknown-freebsd"
4141
# TODO: This should be split into two as the other jobs are.
4242
export BUILD_PROFILE="release"
43+
44+
# HACK: Works around `aws-lc-rs`' issue with internal bindgen on FreeBSD.
45+
# See: https://github.com/aws/aws-lc-rs/issues/476#issuecomment-2263118015
46+
export AWS_LC_SYS_EXTERNAL_BINDGEN=1
47+
4348
bash ci/run.bash

0 commit comments

Comments
 (0)