Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ksco committed Aug 12, 2023
1 parent 5121438 commit a74bafd
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,32 +31,29 @@ jobs:
id: cache-spike
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/build/riscv
path: ${{ github.workspace }}/riscv
key: ${{ runner.os }}-${{ steps.get-spike-cache-key.outputs.key }}-spike

- name: Install Toolchain
if: steps.cache-spike.outputs.cache-hit != 'true'
run: |
mkdir -p build/
cd build
wget -O- -q https://github.com/riscv-collab/riscv-gnu-toolchain/releases/download/2023.07.07/riscv64-elf-ubuntu-22.04-gcc-nightly-2023.07.07-nightly.tar.gz | tar -xzf -
- name: Build Spike
if: steps.cache-spike.outputs.cache-hit != 'true'
run: |
cd build
git clone --depth=1 https://github.com/riscv-software-src/riscv-isa-sim.git
cd riscv-isa-sim
mkdir build
cd build
../configure --prefix=${{ github.workspace }}/build/riscv
../configure --prefix=${{ github.workspace }}/riscv
make -j4
sudo make install
- name: Build and Test
run: |
export PATH="${{ github.workspace }}/build/riscv/bin:$PATH"
export RISCV="${{ github.workspace }}/build/riscv"
export PATH="${{ github.workspace }}/riscv/bin:$PATH"
export RISCV="${{ github.workspace }}/riscv"
make -j4
- name: Archive artifacts
Expand Down

0 comments on commit a74bafd

Please sign in to comment.