mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05:00
31 lines
1.3 KiB
TOML
31 lines
1.3 KiB
TOML
[build]
|
|
pre-build = [
|
|
# Use HTTPS for package sources
|
|
"apt-get update && apt-get install --assume-yes --no-install-recommends ca-certificates",
|
|
"find /etc/apt/ -type f \\( -name '*.list' -o -name '*.sources' \\) -exec sed -i 's|http://|https://|g' {} +",
|
|
|
|
# Configure APT retries and timeouts to handle network issues
|
|
"echo 'Acquire::Retries \"3\";' > /etc/apt/apt.conf.d/80-retries",
|
|
"echo 'Acquire::http::Timeout \"60\";' >> /etc/apt/apt.conf.d/80-retries",
|
|
"echo 'Acquire::ftp::Timeout \"60\";' >> /etc/apt/apt.conf.d/80-retries",
|
|
|
|
# rust-bindgen dependencies: llvm-dev libclang-dev (>= 10) clang (>= 10)
|
|
# See: https://github.com/cross-rs/cross/wiki/FAQ#using-clang--bindgen for
|
|
# recommended clang versions for the given cross and bindgen version.
|
|
"apt-get update && apt-get install --assume-yes --no-install-recommends llvm-dev libclang-dev clang",
|
|
]
|
|
|
|
[target.riscv64gc-unknown-linux-gnu]
|
|
image = "ubuntu:24.04"
|
|
pre-build = [
|
|
"apt update",
|
|
"apt install --yes gcc gcc-riscv64-linux-gnu g++-riscv64-linux-gnu libclang-dev make",
|
|
]
|
|
env.passthrough = [
|
|
"CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_LINKER=riscv64-linux-gnu-gcc",
|
|
"CXX_riscv64gc_unknown_linux_gnu=riscv64-linux-gnu-g++",
|
|
]
|
|
|
|
[build.env]
|
|
passthrough = ["JEMALLOC_SYS_WITH_LG_PAGE"]
|