mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-08 23:08:19 -05:00
feat: cross-compile to RISC-V (#16426)
Co-authored-by: Alexey Shekhirin <5773434+shekhirin@users.noreply.github.com>
This commit is contained in:
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@@ -63,24 +63,35 @@ jobs:
|
|||||||
name: build release
|
name: build release
|
||||||
runs-on: ${{ matrix.configs.os }}
|
runs-on: ${{ matrix.configs.os }}
|
||||||
needs: extract-version
|
needs: extract-version
|
||||||
|
continue-on-error: ${{ matrix.configs.allow_fail }}
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
configs:
|
configs:
|
||||||
- target: x86_64-unknown-linux-gnu
|
- target: x86_64-unknown-linux-gnu
|
||||||
os: ubuntu-24.04
|
os: ubuntu-24.04
|
||||||
profile: maxperf
|
profile: maxperf
|
||||||
|
allow_fail: false
|
||||||
- target: aarch64-unknown-linux-gnu
|
- target: aarch64-unknown-linux-gnu
|
||||||
os: ubuntu-24.04
|
os: ubuntu-24.04
|
||||||
profile: maxperf
|
profile: maxperf
|
||||||
|
allow_fail: false
|
||||||
- target: x86_64-apple-darwin
|
- target: x86_64-apple-darwin
|
||||||
os: macos-13
|
os: macos-13
|
||||||
profile: maxperf
|
profile: maxperf
|
||||||
|
allow_fail: false
|
||||||
- target: aarch64-apple-darwin
|
- target: aarch64-apple-darwin
|
||||||
os: macos-14
|
os: macos-14
|
||||||
profile: maxperf
|
profile: maxperf
|
||||||
|
allow_fail: false
|
||||||
- target: x86_64-pc-windows-gnu
|
- target: x86_64-pc-windows-gnu
|
||||||
os: ubuntu-24.04
|
os: ubuntu-24.04
|
||||||
profile: maxperf
|
profile: maxperf
|
||||||
|
allow_fail: false
|
||||||
|
- target: riscv64gc-unknown-linux-gnu
|
||||||
|
os: ubuntu-24.04
|
||||||
|
profile: maxperf
|
||||||
|
allow_fail: true
|
||||||
build:
|
build:
|
||||||
- command: build
|
- command: build
|
||||||
binary: reth
|
binary: reth
|
||||||
|
|||||||
10
Cross.toml
10
Cross.toml
@@ -24,5 +24,15 @@ pre-build = [
|
|||||||
# Inspired by https://github.com/cross-rs/cross/blob/9e2298e17170655342d3248a9c8ac37ef92ba38f/docker/Dockerfile.x86_64-pc-windows-gnu#L51
|
# Inspired by https://github.com/cross-rs/cross/blob/9e2298e17170655342d3248a9c8ac37ef92ba38f/docker/Dockerfile.x86_64-pc-windows-gnu#L51
|
||||||
dockerfile = "./Dockerfile.x86_64-pc-windows-gnu"
|
dockerfile = "./Dockerfile.x86_64-pc-windows-gnu"
|
||||||
|
|
||||||
|
[target.riscv64gc-unknown-linux-gnu]
|
||||||
|
image = "ubuntu:24.04"
|
||||||
|
pre-build = [
|
||||||
|
"apt update",
|
||||||
|
"apt install --yes gcc gcc-riscv64-linux-gnu libclang-dev make",
|
||||||
|
]
|
||||||
|
env.passthrough = [
|
||||||
|
"CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_LINKER=riscv64-linux-gnu-gcc",
|
||||||
|
]
|
||||||
|
|
||||||
[build.env]
|
[build.env]
|
||||||
passthrough = ["JEMALLOC_SYS_WITH_LG_PAGE"]
|
passthrough = ["JEMALLOC_SYS_WITH_LG_PAGE"]
|
||||||
|
|||||||
Reference in New Issue
Block a user