Skip to content
Myr

release: add binaries for `riscv64gc-unknown-linux-gnu` target

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Note that we skip lz4/brotli/zstd tests on RISC-V. The CI runs RISC-V tests using cross/QEMU emulation. The decompression tools (lz4, brotli, zstd) are x86_64 binaries on the host that cannot execute in the RISC-V QEMU environment. Skip these three tests at compile-time on RISC-V to avoid test failures. The -z/--search-zip functionality itself works correctly on real RISC-V hardware where native decompression tools are available. PR #3165

authored by mariano-m13 · committed by Andrew Gallant · parent 096f79a · Browse files · 4 files+18 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+18 added−0 removed

  • tests:+6 added−0 removed
  • other:+12 added−0 removed

4 files+18 added−0 removed

modified:.github/workflows/ci.yml+4 added
93 unmodified lines
94 - build: stable-s390x95 os: ubuntu-latest96 rust: stable97 target: s390x-unknown-linux-gnu98 - build: stable-riscv6499 os: ubuntu-latest100 rust: stable101 target: riscv64gc-unknown-linux-gnu102 - build: macos103 os: macos-latest104 rust: nightly105 - build: win-msvc
159 unmodified lines
modified:.github/workflows/release.yml+6 added
108 unmodified lines
109 rust: stable110 target: s390x-unknown-linux-gnu111 strip: s390x-linux-gnu-strip112 qemu: qemu-s390x113 - build: stable-riscv64114 os: ubuntu-latest115 rust: stable116 target: riscv64gc-unknown-linux-gnu117 strip: riscv64-linux-gnu-strip118 qemu: qemu-riscv64119 - build: macos120 os: macos-latest121 rust: nightly122 target: x86_64-apple-darwin
263 unmodified lines
modified:tests/misc.rs+6 added
920 unmodified lines
921";922 eqnice!(expected, cmd.stdout());923});924925// lz4 decompression tool doesn't work under RISC-V QEMU emulation in CI926#[cfg(not(target_arch = "riscv64"))]927rgtest!(compressed_lz4, |dir: Dir, mut cmd: TestCommand| {928 if !cmd_exists("lz4") {929 return;930 }
22 unmodified lines
953";954 eqnice!(expected, cmd.stdout());955});956957// brotli decompression tool doesn't work under RISC-V QEMU emulation in CI958#[cfg(not(target_arch = "riscv64"))]959rgtest!(compressed_brotli, |dir: Dir, mut cmd: TestCommand| {960 if !cmd_exists("brotli") {961 return;962 }
7 unmodified lines
970";971 eqnice!(expected, cmd.stdout());972});973974// zstd decompression tool doesn't work under RISC-V QEMU emulation in CI975#[cfg(not(target_arch = "riscv64"))]976rgtest!(compressed_zstd, |dir: Dir, mut cmd: TestCommand| {977 if !cmd_exists("zstd") {978 return;979 }
163 unmodified lines
modified:CHANGELOG.md+2 added
65 unmodified lines
66* [FEATURE #3096](https://github.com/BurntSushi/ripgrep/pull/3096):67 Improve completions for `--hyperlink-format` in bash and fish.68* [FEATURE #3102](https://github.com/BurntSushi/ripgrep/pull/3102):69 Improve completions for `--hyperlink-format` in zsh.70* [FEATURE #3165](https://github.com/BurntSushi/ripgrep/pull/3165):71 Add release binaries for `riscv64gc-unknown-linux-gnu`.72737414.1.1 (2024-09-08)75===================
1709 unmodified lines