@@ -194,6 +194,52 @@ 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 : Install cargo-nextest
222+ shell : bash
223+ run : cargo install cargo-nextest
224+
225+ - name : Download compiler-rt reference sources
226+ shell : bash
227+ run : |
228+ sed -i 's|https://github.com|https://community-ci.openruyi.cn|g' ./ci/download-compiler-rt.sh
229+ sed -i 's|llvm-project-rustc-${rust_llvm_version}|llvm-project|g' ./ci/download-compiler-rt.sh
230+ ./ci/download-compiler-rt.sh
231+ echo "RUST_COMPILER_RT_ROOT=$(realpath ./compiler-rt)" >> "$GITHUB_ENV"
232+
233+ - name : Download musl source
234+ run : |
235+ sed -i 's|https://github.com/kraj/musl.git|https://community-ci.openruyi.cn/others/kraj-musl.git|g' ./ci/update-musl.sh
236+
237+ - name : Verify API list
238+ run : python3 etc/update-api-list.py --check
239+
240+ - name : Run locally
241+ run : ./ci/run.sh
242+
197243 clippy :
198244 name : Clippy
199245 runs-on : ubuntu-24.04
0 commit comments