diff --git a/.github/workflows/build-workflow.yml b/.github/workflows/build-workflow.yml index b2364781d18..9dcb8c2b537 100644 --- a/.github/workflows/build-workflow.yml +++ b/.github/workflows/build-workflow.yml @@ -54,7 +54,6 @@ jobs: - armv5te-unknown-linux-musleabi - x86_64-unknown-linux-musl - i686-unknown-linux-musl - - riscv64gc-unknown-linux-gnu - x86_64-apple-darwin mode: - --release @@ -91,6 +90,13 @@ jobs: cargo_options: --no-run - target: riscv64gc-unknown-linux-gnu + mode: '--release' + # Using < 1.73 causes a segmentation fault when running a binary built with the --release flag + # Rust 1.73 includes both an updated llvm version and updated binutils which is like to have improved compatibility + # See: https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1730-2023-10-05 + # There is a comment in the https://github.com/rust-lang/rust/pull/114048/ which refers to riscv64 support: + # * "Updated dist-riscv64-linux to use binutils 2.36 in order to recognize the zicsr feature, which is no longer part of the base ISA." + rust_channel: "1.73" host_os: ubuntu-22.04 cargo_options: --no-run