@@ -194,6 +194,48 @@ jobs:
194194 rm -rf /tmp/.buildx-cache
195195 mv /tmp/.buildx-cache-new /tmp/.buildx-cache
196196
197+ test-riscv64gc-native :
198+ name : Build and test (riscv64gc-unknown-linux-gnu self-hosted, experimental)
199+ runs-on : [self-hosted, linux, riscv64]
200+ needs : [calculate_vars]
201+ timeout-minutes : 180
202+ continue-on-error : true # non-block even on fail
203+
204+ MAY_SKIP_LIBM_CI : ${{ needs.calculate_vars.outputs.may_skip_libm_ci }}
205+
206+ - name : checkout code
207+ uses : actions/checkout@v4
208+
209+ - name : Print runner info
210+ run : |
211+ uname -a
212+
213+ - name : Configure Rustup(install rustup)
214+ shell : bash
215+ run : |
216+ export RUSTUP_DIST_SERVER=https://mirrors.tuna.tsinghua.edu.cn/rustup
217+ channel="nightly"
218+ rustup update "$channel" --no-self-update
219+ rustup default "$channel"
220+
221+ - name : Download compiler-rt reference sources
222+ shell : bash
223+ run : |
224+ sed -i 's|https://github.com|https://community-ci.openruyi.cn|g' ./ci/download-compiler-rt.sh
225+ sed -i 's|llvm-project-rustc-${rust_llvm_version}|llvm-project|g' ./ci/download-compiler-rt.sh
226+ ./ci/download-compiler-rt.sh
227+ echo "RUST_COMPILER_RT_ROOT=$(realpath ./compiler-rt)" >> "$GITHUB_ENV"
228+
229+ - name : Download musl source
230+ run : |
231+ sed -i 's|https://github.com/kraj/musl.git|https://community-ci.openruyi.cn/others/kraj-musl.git|g' ./ci/update-musl.sh
232+
233+ - name : Verify API list
234+ run : python3 etc/update-api-list.py --check
235+
236+ - name : Run locally
237+ run : ./ci/run.sh
238+
197239 clippy :
198240 name : Clippy
199241 runs-on : ubuntu-24.04
0 commit comments