Added cache key. Fixed spike rev.
Change-Id: Ia2715f78dbb3be1bdf0b5ac0936f6320eaa98b73 Signed-off-by: Jan Matyas <jan.matyas@codasip.com>
This commit is contained in:
parent
67cddebde3
commit
56cd6f79f9
|
@ -2,6 +2,9 @@
|
|||
|
||||
name: Test OpenOCD against 2 spike configurations
|
||||
|
||||
env:
|
||||
SPIKE_REV: 0d1a48c0c0e97521c0081b130e97b1352f27380a
|
||||
|
||||
on: pull_request
|
||||
|
||||
# There is some commented out code below that would be useful in adding this
|
||||
|
@ -21,6 +24,7 @@ jobs:
|
|||
uses: actions/cache@v3
|
||||
with:
|
||||
path: /opt/riscv
|
||||
key: "spike-$SPIKE_REV"
|
||||
|
||||
- if: ${{ steps.cache-deps.outputs.cache-hit != 'true' }}
|
||||
name: Download Toolchain
|
||||
|
@ -30,22 +34,22 @@ jobs:
|
|||
name: Install Toolchain
|
||||
run: tar zxf --strip-components=1 -C /opt/riscv xpack-riscv-none-elf-gcc-12.2.0-1-linux-x64.tar.gz
|
||||
|
||||
- if: ${{ steps.cache-deps.outputs.cache-hit != 'true' }}
|
||||
name: Download Spike source
|
||||
run: |
|
||||
git clone --recurse-submodules https://github.com/riscv-software-src/riscv-isa-sim
|
||||
#cd riscv-isa-sim
|
||||
#git checkout 43ea20dfbb6c815004a51106a3b2009d7f6c4940
|
||||
|
||||
- if: ${{ steps.cache-deps.outputs.cache-hit != 'true' }}
|
||||
name: Install Spike build dependencies
|
||||
run: |
|
||||
sudo apt install build-essential device-tree-compiler
|
||||
|
||||
- if: ${{ steps.cache-deps.outputs.cache-hit != 'true' }}
|
||||
name: Download Spike source
|
||||
run: |
|
||||
git clone https://github.com/riscv-software-src/riscv-isa-sim
|
||||
cd riscv-isa-sim
|
||||
git checkout $SPIKE_REV
|
||||
git submodule update --init --recursive
|
||||
|
||||
- if: ${{ steps.cache-deps.outputs.cache-hit != 'true' }}
|
||||
name: Build Spike
|
||||
run: |
|
||||
cd riscv-isa-sim
|
||||
mkdir build install
|
||||
cd build
|
||||
../configure --prefix=/opt/riscv
|
||||
|
|
Loading…
Reference in New Issue