diff --git a/Cross.toml b/Cross.toml index 44f9814..878885e 100644 --- a/Cross.toml +++ b/Cross.toml @@ -13,7 +13,10 @@ image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:edge" [target.riscv64gc-unknown-linux-gnu] pre-build = [ "dpkg --add-architecture $CROSS_DEB_ARCH", - "apt-get update && apt-get --assume-yes install libssl-dev:$CROSS_DEB_ARCH", + # NOTE: on Noble, dpkg --add-architecture does not do enough to add riscv64 + # sources properly, so we do it manually below + 'echo -e "Types: deb\nURIs: http://ports.ubuntu.com/ubuntu-ports\nSuites: noble noble-updates noble-security\nComponents: main restricted universe multiverse\nArchitectures: riscv64" >> /etc/apt/sources.list.d/ubuntu.sources', + "apt update && apt --assume-yes install libssl-dev:$CROSS_DEB_ARCH", ] env.passthrough = [ "OPENSSL_LIB_DIR=/usr/lib/riscv64-linux-gnu",