ci: Add riscv64 job (QEMU) #2008

pull theStack wants to merge 1 commits into bitcoin-core:master from theStack:ci-add_riscv_job changing 2 files +25 −1
  1. theStack commented at 12:12 AM on November 23, 2026: contributor

    RISC-V has gained popularity in recent years, and Bitcoin Core has shipped riscv64-linux-gnu binaries since 2019 (first in v0.18; gitian support introduced in https://github.com/bitcoin/bitcoin/pull/13665)). As we don't currently test that architecture, this PR adds a simple CI job for it.

    We had RISC-V-specific build system issues in the past (#1027, #1104). Note that this job would not have caught them as configured: the global ASM=no skips the asm check, and WITH_VALGRIND=no skips the Valgrind support check. Configuring with --with-asm=auto and --with-valgrind=auto would exercise both, which can be discussed either here or in a follow-up PR (which might apply that to other jobs as well, if it makes sense).

    Set up like the existing s390x and ppc64le jobs: cross-compiled with gcc-riscv64-linux-gnu, runs tests, examples and benchmarks under qemu-user. The cost is one additional QEMU job and three more installed packages (plus their dependencies) in the Docker image.

  2. ci: Add riscv64 job (QEMU)
    RISC-V has gained popularity in recent years, and Bitcoin Core has
    shipped `riscv64-linux-gnu` binaries since v0.18. As we don't currently
    test that architecture, this commit adds a simple CI job for it.
    
    We had RISC-V-specific build system issues in the past (#1027: Valgrind
    wrongly reported as available, #1104: x86_64 asm check false positive).
    Note that this job would not have caught them as configured: the global
    ASM=no skips the asm check, and WITH_VALGRIND=no skips the Valgrind
    support check. Configuring with --with-asm=auto and --with-valgrind=auto
    would exercise both.
    
    Set up like the existing s390x and ppc64le jobs: cross-compiled with
    gcc-riscv64-linux-gnu, runs tests, examples and benchmarks under
    qemu-user. The cost is one additional QEMU job and three more installed
    packages (plus their dependencies) in the Docker image.
    d2e728297d
  3. real-or-random requested review from Copilot on Nov 23, 2026
  4. ?
    copilot_work_started real-or-random
  5. real-or-random approved
  6. real-or-random commented at 6:56 AM on November 23, 2026: contributor

    ACK d2e728297dfe35f4ae2287a09f4f7b12f6438890

    It's nice to see that our decision to build this on Debian a few years ago still shines. Adding Debian-supported architectures is really easy.

  7. Copilot commented at 6:56 AM on November 23, 2026: none

    <!-- ccr-overview-v2 -->

    🟢 Approval recommended

    No active review issues are recorded for the added RISC-V 64-bit QEMU CI coverage.

    No open issues 🎉

    <details> <summary><strong>What changed in this PR</strong></summary>

    Adds RISC-V 64-bit coverage to the existing cross-compiled QEMU CI setup, following the s390x and ppc64le jobs.

    Changes:

    • Registers the riscv64 Debian architecture and installs its cross-compiler, development libraries, and debug symbols.
    • Adds a QEMU job to run tests, examples, and benchmarks, with reduced test iterations and Valgrind and constant-time tests disabled.
    File Description
    ci/​linux-debian.Dockerfile Adds RISC-V architecture support and cross-compilation packages.
    .github/​workflows/​ci.yml Adds the Debian RISC-V job using qemu-riscv64 and shared CI steps.

    </details>

    <sub>Review effort: Balanced</sub>

  8. real-or-random merged this on Nov 23, 2026
  9. real-or-random closed this on Nov 23, 2026

  10. real-or-random commented at 7:03 AM on November 23, 2026: contributor

    We had RISC-V-specific build system issues in the past (#1027, #1104). Note that this job would not have caught them as configured: the global ASM=no skips the asm check, and WITH_VALGRIND=no skips the Valgrind support check. Configuring with --with-asm=auto and --with-valgrind=auto would exercise both, which can be discussed either here or in a follow-up PR (which might apply that to other jobs as well, if it makes sense).

    It sounds like a reasonable idea to test this, but I'm not sure if it's worth the complexity right now:

    • We need to make sure that we really assert the choices of the build system. Otherwise, if we have build system bug, the actual code tests test the wrong config.
    • We'd need to test both Autotools and CMake. (This sound a bit like a good reason to start thinking about a deprecation of Autotools?!)
  11. real-or-random added the label assurance on Nov 23, 2026
  12. real-or-random added the label ci on Nov 23, 2026
  13. theStack deleted the branch on Nov 23, 2026

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-12-02 10:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me