Skip to content

Commit 355f1fb

Browse files
aswatermanlz-bro
andauthored
CI: Bump GitHub actions to latest versions (#619)
Co-authored-by: liangzhen <zhen.liang@spacemit.com>
1 parent b694192 commit 355f1fb

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/debug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name: Check Debug Code Style (pylint)
77

88
jobs:
99
check:
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-24.04
1111
steps:
1212
- name: Checkout Code
1313
uses: actions/checkout@v3

.github/workflows/spike-openocd-tests.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ on:
3434
jobs:
3535
test:
3636
name: Test debug (Ubuntu)
37-
runs-on: ubuntu-20.04
37+
runs-on: ubuntu-24.04
3838
steps:
39-
- uses: actions/checkout@v3
39+
- uses: actions/checkout@v4
4040
with:
4141
submodules: recursive
4242

4343
- name: Install packages
4444
run: |
4545
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
4747
4848
- name: Get revisions of dependencies
4949
run: |
@@ -57,7 +57,7 @@ jobs:
5757
5858
- name: Get the toolchain from cache (if available)
5959
id: cache-restore-toolchain
60-
uses: actions/cache/restore@v3
60+
uses: actions/cache/restore@v4
6161
with:
6262
path: /opt/riscv/toolchain
6363
key: "toolchain-${{env.TOOLCHAIN_URL}}"
@@ -74,14 +74,14 @@ jobs:
7474

7575
- name: Save the toolchain to the cache (if necessary)
7676
id: cache-save-toolchain
77-
uses: actions/cache/save@v3
77+
uses: actions/cache/save@v4
7878
with:
7979
path: /opt/riscv/toolchain
8080
key: "toolchain-${{env.TOOLCHAIN_URL}}"
8181

8282
- name: Get OpenOCD from cache (if available)
8383
id: cache-restore-openocd
84-
uses: actions/cache/restore@v3
84+
uses: actions/cache/restore@v4
8585
with:
8686
path: /opt/riscv/openocd
8787
key: "openocd-${{env.OPENOCD_COMMIT}}"
@@ -106,14 +106,14 @@ jobs:
106106
- if: ${{ steps.cache-restore-openocd.outputs.cache-hit != 'true' }}
107107
name: Save OpenOCD to cache (if built)
108108
id: cache-save-openocd
109-
uses: actions/cache/save@v3
109+
uses: actions/cache/save@v4
110110
with:
111111
path: /opt/riscv/openocd
112112
key: "openocd-${{env.OPENOCD_COMMIT}}"
113113

114114
- name: Get spike from cache (if available)
115115
id: cache-restore-spike
116-
uses: actions/cache/restore@v3
116+
uses: actions/cache/restore@v4
117117
with:
118118
path: /opt/riscv/spike
119119
key: "spike-${{env.SPIKE_COMMIT}}"
@@ -138,7 +138,7 @@ jobs:
138138
- if: ${{ steps.cache-restore-spike.outputs.cache-hit != 'true' }}
139139
name: Save spike to cache (if built)
140140
id: cache-save-spike
141-
uses: actions/cache/save@v3
141+
uses: actions/cache/save@v4
142142
with:
143143
path: /opt/riscv/spike
144144
key: "spike-${{env.SPIKE_COMMIT}}"
@@ -166,7 +166,7 @@ jobs:
166166
- name: Archive test logs
167167
# Proceed even if there was a failed test
168168
if: ${{ success() || failure() }}
169-
uses: actions/upload-artifact@v3
169+
uses: actions/upload-artifact@v4
170170
with:
171171
name: test-logs
172172
path: riscv-tests/debug/logs

0 commit comments

Comments
 (0)