34
34
jobs :
35
35
test :
36
36
name : Test debug (Ubuntu)
37
- runs-on : ubuntu-20 .04
37
+ runs-on : ubuntu-24 .04
38
38
steps :
39
- - uses : actions/checkout@v3
39
+ - uses : actions/checkout@v4
40
40
with :
41
41
submodules : recursive
42
42
43
43
- name : Install packages
44
44
run : |
45
45
sudo apt-get update
46
- sudo apt-get install -y device-tree-compiler build-essential
46
+ sudo apt-get install -y device-tree-compiler build-essential libjim-dev
47
47
48
48
- name : Get revisions of dependencies
49
49
run : |
57
57
58
58
- name : Get the toolchain from cache (if available)
59
59
id : cache-restore-toolchain
60
- uses : actions/cache/restore@v3
60
+ uses : actions/cache/restore@v4
61
61
with :
62
62
path : /opt/riscv/toolchain
63
63
key : " toolchain-${{env.TOOLCHAIN_URL}}"
@@ -74,14 +74,14 @@ jobs:
74
74
75
75
- name : Save the toolchain to the cache (if necessary)
76
76
id : cache-save-toolchain
77
- uses : actions/cache/save@v3
77
+ uses : actions/cache/save@v4
78
78
with :
79
79
path : /opt/riscv/toolchain
80
80
key : " toolchain-${{env.TOOLCHAIN_URL}}"
81
81
82
82
- name : Get OpenOCD from cache (if available)
83
83
id : cache-restore-openocd
84
- uses : actions/cache/restore@v3
84
+ uses : actions/cache/restore@v4
85
85
with :
86
86
path : /opt/riscv/openocd
87
87
key : " openocd-${{env.OPENOCD_COMMIT}}"
@@ -106,14 +106,14 @@ jobs:
106
106
- if : ${{ steps.cache-restore-openocd.outputs.cache-hit != 'true' }}
107
107
name : Save OpenOCD to cache (if built)
108
108
id : cache-save-openocd
109
- uses : actions/cache/save@v3
109
+ uses : actions/cache/save@v4
110
110
with :
111
111
path : /opt/riscv/openocd
112
112
key : " openocd-${{env.OPENOCD_COMMIT}}"
113
113
114
114
- name : Get spike from cache (if available)
115
115
id : cache-restore-spike
116
- uses : actions/cache/restore@v3
116
+ uses : actions/cache/restore@v4
117
117
with :
118
118
path : /opt/riscv/spike
119
119
key : " spike-${{env.SPIKE_COMMIT}}"
@@ -138,7 +138,7 @@ jobs:
138
138
- if : ${{ steps.cache-restore-spike.outputs.cache-hit != 'true' }}
139
139
name : Save spike to cache (if built)
140
140
id : cache-save-spike
141
- uses : actions/cache/save@v3
141
+ uses : actions/cache/save@v4
142
142
with :
143
143
path : /opt/riscv/spike
144
144
key : " spike-${{env.SPIKE_COMMIT}}"
@@ -166,7 +166,7 @@ jobs:
166
166
- name : Archive test logs
167
167
# Proceed even if there was a failed test
168
168
if : ${{ success() || failure() }}
169
- uses : actions/upload-artifact@v3
169
+ uses : actions/upload-artifact@v4
170
170
with :
171
171
name : test-logs
172
172
path : riscv-tests/debug/logs
0 commit comments