Cross.toml: Install tzdata in container

Linux tests require that now, as we now assume /usr/share/zoneinfo
is present.
This commit is contained in:
Nicolas Boichat 2025-04-27 14:26:00 +08:00
parent dadda0dd6a
commit eb5fc4c4cb
2 changed files with 7 additions and 4 deletions

View file

@ -653,10 +653,6 @@ jobs:
;;
esac
outputs CARGO_TEST_OPTIONS
# ** pass needed environment into `cross` container (iff `cross` not already configured via "Cross.toml")
if [ "${CARGO_CMD}" = 'cross' ] && [ ! -e "Cross.toml" ] ; then
printf "[build.env]\npassthrough = [\"CI\", \"RUST_BACKTRACE\", \"CARGO_TERM_COLOR\"]\n" > Cross.toml
fi
# * executable for `strip`?
STRIP="strip"
case ${{ matrix.job.target }} in

7
Cross.toml Normal file
View file

@ -0,0 +1,7 @@
# spell-checker:ignore (misc) dpkg noninteractive tzdata
[build]
pre-build = [
"apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install tzdata",
]
[build.env]
passthrough = ["CI", "RUST_BACKTRACE", "CARGO_TERM_COLOR"]