diff --git a/.github/workflows/build-binaries.yml b/.github/workflows/build-binaries.yml index 1e1266ecb7..8b8d9d128e 100644 --- a/.github/workflows/build-binaries.yml +++ b/.github/workflows/build-binaries.yml @@ -292,6 +292,8 @@ jobs: maturin_docker_options: -e JEMALLOC_SYS_WITH_LG_PAGE=16 - target: arm-unknown-linux-musleabihf arch: arm + - target: riscv64gc-unknown-linux-gnu + arch: riscv64 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -319,7 +321,7 @@ jobs: githubToken: ${{ github.token }} install: | apt-get update - apt-get install -y --no-install-recommends python3 python3-pip + apt-get install -y --no-install-recommends python3 python3-pip libatomic1 pip3 install -U pip run: | pip3 install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall diff --git a/crates/ruff/Cargo.toml b/crates/ruff/Cargo.toml index e3a22c2fdd..32678e0eb6 100644 --- a/crates/ruff/Cargo.toml +++ b/crates/ruff/Cargo.toml @@ -85,7 +85,7 @@ dist = true [target.'cfg(target_os = "windows")'.dependencies] mimalloc = { workspace = true } -[target.'cfg(all(not(target_os = "windows"), not(target_os = "openbsd"), not(target_os = "aix"), not(target_os = "android"), any(target_arch = "x86_64", target_arch = "aarch64", target_arch = "powerpc64")))'.dependencies] +[target.'cfg(all(not(target_os = "windows"), not(target_os = "openbsd"), not(target_os = "aix"), not(target_os = "android"), any(target_arch = "x86_64", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64")))'.dependencies] tikv-jemallocator = { workspace = true } [lints] diff --git a/crates/ruff/src/main.rs b/crates/ruff/src/main.rs index 058b6bc9d5..62e4f85b6e 100644 --- a/crates/ruff/src/main.rs +++ b/crates/ruff/src/main.rs @@ -19,7 +19,8 @@ static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; any( target_arch = "x86_64", target_arch = "aarch64", - target_arch = "powerpc64" + target_arch = "powerpc64", + target_arch = "riscv64" ) ))] #[global_allocator] diff --git a/crates/ruff_benchmark/Cargo.toml b/crates/ruff_benchmark/Cargo.toml index b6b4b40de2..92606c9901 100644 --- a/crates/ruff_benchmark/Cargo.toml +++ b/crates/ruff_benchmark/Cargo.toml @@ -86,5 +86,5 @@ walltime = ["ruff_db/os", "ty_project", "divan"] [target.'cfg(target_os = "windows")'.dev-dependencies] mimalloc = { workspace = true } -[target.'cfg(all(not(target_os = "windows"), not(target_os = "openbsd"), any(target_arch = "x86_64", target_arch = "aarch64", target_arch = "powerpc64")))'.dev-dependencies] +[target.'cfg(all(not(target_os = "windows"), not(target_os = "openbsd"), any(target_arch = "x86_64", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64")))'.dev-dependencies] tikv-jemallocator = { workspace = true } diff --git a/crates/ruff_benchmark/benches/formatter.rs b/crates/ruff_benchmark/benches/formatter.rs index 9b445b1dbd..f2bd54bb44 100644 --- a/crates/ruff_benchmark/benches/formatter.rs +++ b/crates/ruff_benchmark/benches/formatter.rs @@ -21,7 +21,8 @@ static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; any( target_arch = "x86_64", target_arch = "aarch64", - target_arch = "powerpc64" + target_arch = "powerpc64", + target_arch = "riscv64" ) ))] #[global_allocator] diff --git a/crates/ruff_benchmark/benches/lexer.rs b/crates/ruff_benchmark/benches/lexer.rs index cbba77c78b..968ac74b14 100644 --- a/crates/ruff_benchmark/benches/lexer.rs +++ b/crates/ruff_benchmark/benches/lexer.rs @@ -18,7 +18,8 @@ static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; any( target_arch = "x86_64", target_arch = "aarch64", - target_arch = "powerpc64" + target_arch = "powerpc64", + target_arch = "riscv64" ) ))] #[global_allocator] diff --git a/crates/ruff_benchmark/benches/linter.rs b/crates/ruff_benchmark/benches/linter.rs index 5fc79679b9..98ef4083a9 100644 --- a/crates/ruff_benchmark/benches/linter.rs +++ b/crates/ruff_benchmark/benches/linter.rs @@ -26,7 +26,8 @@ static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; any( target_arch = "x86_64", target_arch = "aarch64", - target_arch = "powerpc64" + target_arch = "powerpc64", + target_arch = "riscv64" ) ))] #[global_allocator] @@ -42,7 +43,8 @@ static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc; any( target_arch = "x86_64", target_arch = "aarch64", - target_arch = "powerpc64" + target_arch = "powerpc64", + target_arch = "riscv64" ) ))] #[unsafe(export_name = "_rjem_malloc_conf")] diff --git a/crates/ruff_benchmark/benches/parser.rs b/crates/ruff_benchmark/benches/parser.rs index ac648aabc4..d5e086eb50 100644 --- a/crates/ruff_benchmark/benches/parser.rs +++ b/crates/ruff_benchmark/benches/parser.rs @@ -20,7 +20,8 @@ static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; any( target_arch = "x86_64", target_arch = "aarch64", - target_arch = "powerpc64" + target_arch = "powerpc64", + target_arch = "riscv64" ) ))] #[global_allocator] diff --git a/dist-workspace.toml b/dist-workspace.toml index 2e60fae7f9..499bbd0766 100644 --- a/dist-workspace.toml +++ b/dist-workspace.toml @@ -28,6 +28,7 @@ targets = [ "x86_64-apple-darwin", "powerpc64-unknown-linux-gnu", "powerpc64le-unknown-linux-gnu", + "riscv64gc-unknown-linux-gnu", "s390x-unknown-linux-gnu", "x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl",