Skip to content

Commit acfd817

Browse files
committed
build: refactor init-ready-to-run script
The previous implementation does not consider one case: developer may want to test spike-so (or other components) with NEMU CI before commiting changes to spike master. This patch adds support for downloading github artifacts as ready-to-run, which solves the issue. The previous AI-assited script is ugly and non-extensible. This patch rewrite the script.
1 parent 28034f5 commit acfd817

File tree

2 files changed

+444
-163
lines changed

2 files changed

+444
-163
lines changed

ready-to-run.yml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,31 @@
11
spike:
22
type: github-release
33
repo: OpenXiangShan/riscv-isa-sim
4-
version: v2025.12.r2
4+
tag: v2025.12.r2
55
assets:
6-
- save_as: spike-xiangshan-ref.so
7-
asset_name: spike-{version}-xiangshan-ref.so
8-
- save_as: spike-nutshell-ref.so
9-
asset_name: spike-{version}-nutshell-ref.so
6+
- name: spike-{tag}-xiangshan-ref.so
7+
save_as: spike-xiangshan-ref.so
8+
- name: spike-{tag}-nutshell-ref.so
9+
save_as: spike-nutshell-ref.so
1010

11+
# spike:
12+
# type: github-artifacts
13+
# repo: OpenXiangShan/riscv-isa-sim
14+
# run_id:
15+
# # You can get run_id from the URL of a workflow run
16+
# artifacts:
17+
# - name: spike-xiangshan-ref.so
18+
# save_as: spike-xiangshan-ref.so
19+
# - name: spike-nutshell-ref.so
20+
# save_as: spike-nutshell-ref.so
21+
22+
23+
# workload:
24+
# type: download
25+
# files:
26+
# - url: https://github.com/OpenXiangShan/ready-to-run/raw/ba2253e6f3433747d101d74669d46eda86adf836/linux.bin
27+
# save_as: linux.bin
28+
# digest: sha256:6f72ee6647b442e47e33300dcc078de88da7ac95c29b8adac782039b564e02d1
29+
# - url: https://github.com/OpenXiangShan/ready-to-run/raw/ba2253e6f3433747d101d74669d46eda86adf836/microbench.bin
30+
# save_as: microbench.bin
31+
# digest: sha256:d2c5a0399eeccb97412a173562f16282706156ebb8e8a3ac2d1ff0219c2dbeaf

0 commit comments

Comments
 (0)