File tree Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 1
- name : RISC-V CI
1
+ name : risc-v CI
2
2
3
3
on :
4
4
pull_request :
5
5
6
6
jobs :
7
- test :
7
+ build_and_test :
8
8
runs-on : ubuntu-latest
9
9
container :
10
10
image : ghcr.io/utoss/risc-v:ci
13
13
- name : Checkout code
14
14
uses : actions/checkout@v4
15
15
16
+ - name : Build top
17
+ run : make build_top
18
+
16
19
- name : Build testbench
17
20
run : make build_tb
18
21
21
24
22
25
- name : Upload VCD files
23
26
uses : actions/upload-artifact@v4
24
- if : always()
27
+ if : steps.build-testbench.outcome == 'success'
25
28
with :
26
29
name : vcd-files
27
30
path : test/vcd/*.vcd
28
31
retention-days : 7
32
+
33
+ - name : Upload VVP files
34
+ uses : actions/upload-artifact@v4
35
+ if : steps.build-top.outcome == 'success'
36
+ with :
37
+ name : vvp-files
38
+ path : out/*.vvp
39
+ retention-days : 7
Original file line number Diff line number Diff line change @@ -12,14 +12,14 @@ TB_UTILS := test/utils.svh
12
12
13
13
TB_VCD_BASE_PATH := test/vcd
14
14
15
- all : $(OUTPUT )
15
+ build_top : $(OUTPUT )
16
+
17
+ run_top : $(OUTPUT )
18
+ $(VVP ) $(OUTPUT )
16
19
17
20
$(OUTPUT ) :
18
21
$(IVERILOG ) -g2012 -o $(OUTPUT ) -c src/top.cf
19
22
20
- run : $(OUTPUT )
21
- $(VVP ) $(OUTPUT )
22
-
23
23
$(TB_OUT_PATTERN ) : $(TB_SRC_PATTERN ) $(TB_UTILS )
24
24
$(IVERILOG ) -g2012 -o $@ -c src/top.cf $<
25
25
You can’t perform that action at this time.
0 commit comments