Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/spike-openocd-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ on:
jobs:
test:
name: Test debug (Ubuntu)
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively, Ubuntu 24.04 can be used. However, AFAIU, GitHub runner supports the two latest LTS versions of Ubuntu, so I'm also leaning towards using ubuntu-latest.
FIY: actions/runner-images#11101

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y device-tree-compiler build-essential
sudo apt-get install -y device-tree-compiler build-essential libjim-dev
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a clarification:
libjim-dev is the new requirement of OpenOCD. Previously it was build in-tree.


- name: Get revisions of dependencies
run: |
Expand All @@ -57,7 +57,7 @@ jobs:

- name: Get the toolchain from cache (if available)
id: cache-restore-toolchain
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: /opt/riscv/toolchain
key: "toolchain-${{env.TOOLCHAIN_URL}}"
Expand All @@ -74,14 +74,14 @@ jobs:

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

- name: Get OpenOCD from cache (if available)
id: cache-restore-openocd
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: /opt/riscv/openocd
key: "openocd-${{env.OPENOCD_COMMIT}}"
Expand All @@ -106,14 +106,14 @@ jobs:
- if: ${{ steps.cache-restore-openocd.outputs.cache-hit != 'true' }}
name: Save OpenOCD to cache (if built)
id: cache-save-openocd
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: /opt/riscv/openocd
key: "openocd-${{env.OPENOCD_COMMIT}}"

- name: Get spike from cache (if available)
id: cache-restore-spike
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: /opt/riscv/spike
key: "spike-${{env.SPIKE_COMMIT}}"
Expand All @@ -138,7 +138,7 @@ jobs:
- if: ${{ steps.cache-restore-spike.outputs.cache-hit != 'true' }}
name: Save spike to cache (if built)
id: cache-save-spike
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: /opt/riscv/spike
key: "spike-${{env.SPIKE_COMMIT}}"
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
- name: Archive test logs
# Proceed even if there was a failed test
if: ${{ success() || failure() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-logs
path: riscv-tests/debug/logs
Loading