From 9680e995d69b9a5aece9318bdab82f360d4f2d27 Mon Sep 17 00:00:00 2001 From: ChanTsune <41658782+ChanTsune@users.noreply.github.com> Date: Wed, 1 Apr 2026 11:23:46 +0900 Subject: [PATCH 1/5] :wrench: Add actionlint config for ubuntu-24.04-riscv runner label --- .github/actionlint.yaml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .github/actionlint.yaml diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml new file mode 100644 index 000000000..9419309a4 --- /dev/null +++ b/.github/actionlint.yaml @@ -0,0 +1,3 @@ +self-hosted-runner: + labels: + - ubuntu-24.04-riscv From 53141efc1e3c2557339cd1af90e3c9a93db7ae58 Mon Sep 17 00:00:00 2001 From: ChanTsune <41658782+ChanTsune@users.noreply.github.com> Date: Wed, 1 Apr 2026 11:17:31 +0900 Subject: [PATCH 2/5] :construction_worker: Add ubuntu-24.04-riscv to Tier 1 test matrix --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 42fd2dcc5..c55139b5f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,6 +36,7 @@ jobs: os: - ubuntu-latest - ubuntu-22.04-arm # TODO: use ubuntu-24.04-arm if https://github.com/rust-lang/rust/issues/135867 resolved + - ubuntu-24.04-riscv - windows-latest - windows-11-arm - macos-latest From f4991e10c3bc5f80c2091b40d35826f82b3ec467 Mon Sep 17 00:00:00 2001 From: ChanTsune <41658782+ChanTsune@users.noreply.github.com> Date: Wed, 1 Apr 2026 13:36:20 +0900 Subject: [PATCH 3/5] :construction_worker: Install cmake for libz-ng-sys build on RISC-V runner --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c55139b5f..6ec978b78 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -57,7 +57,7 @@ jobs: if: startsWith(matrix.os, 'ubuntu') run: | sudo apt update - sudo apt install -y libacl1-dev + sudo apt install -y cmake libacl1-dev - name: Install Rustup if: ${{ matrix.os == 'windows-11-arm' }} shell: pwsh @@ -191,7 +191,7 @@ jobs: if: startsWith(matrix.os, 'ubuntu') run: | sudo apt update - sudo apt install -y libacl1-dev + sudo apt install -y cmake libacl1-dev - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false From 743eb95860cb905e861a00e6b6e06ea8e6014782 Mon Sep 17 00:00:00 2001 From: ChanTsune <41658782+ChanTsune@users.noreply.github.com> Date: Wed, 1 Apr 2026 23:42:33 +0900 Subject: [PATCH 4/5] :construction_worker: Exclude zlib-ng feature on RISC-V due to unaligned memory access zlib-ng has unresolved RISC-V issues (heap corruption from unaligned fastbin chunks) even in latest version (2.3.3). Skip zlib-ng feature in RISC-V test matrix until upstream fix is available. --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6ec978b78..314a62774 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -88,10 +88,12 @@ jobs: key: "${{ matrix.os }}-${{ steps.install_rust.outputs.version }}-${{ hashFiles('**/Cargo.lock') }}" restore-keys: "${{ matrix.os }}-${{ steps.install_rust.outputs.version }}" - name: run test + shell: bash run: | - cargo hack test --locked --release --feature-powerset --exclude-features wasm --exclude portable-network-archive-fuzz --exclude xtask -- --test-threads=1 + cargo hack test --locked --release --feature-powerset --exclude-features "$EXCLUDE_FEATURES" --exclude portable-network-archive-fuzz --exclude xtask -- --test-threads=1 env: RUST_BACKTRACE: 1 + EXCLUDE_FEATURES: ${{ contains(matrix.os, 'riscv') && 'wasm,zlib-ng' || 'wasm' }} - name: Save rust build cache if: github.ref_name == github.event.repository.default_branch && steps.restore-rust-build-cache.outputs.cache-hit != 'true' uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 From 87fa793bb39f6e029f7b4e98098310bbb6d59632 Mon Sep 17 00:00:00 2001 From: ChanTsune <41658782+ChanTsune@users.noreply.github.com> Date: Thu, 2 Apr 2026 10:59:44 +0900 Subject: [PATCH 5/5] :construction_worker: Extend timeout to 120 min for RISC-V runner --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 314a62774..feb8104d8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,7 +45,7 @@ jobs: - stable - beta - nightly - timeout-minutes: 60 + timeout-minutes: ${{ contains(matrix.os, 'riscv') && 120 || 60 }} runs-on: ${{ matrix.os }} steps: - name: git autocrlf false