Skip to content

Commit

Permalink
Merge pull request #1259 from patrick-rivos/spike-ci
Browse files Browse the repository at this point in the history
Add github action ci to make-report using the spike simulator
  • Loading branch information
kito-cheng authored Jun 1, 2023
2 parents eb1ee1b + 3ea87a1 commit d1dfc7c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/setup-apt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ dpkg --add-architecture i386
apt update
apt install -y autoconf automake autotools-dev curl python3 libmpc-dev libmpfr-dev \
libgmp-dev gawk build-essential bison flex texinfo gperf libtool \
patchutils bc zlib1g-dev libexpat-dev git ninja-build expect
patchutils bc zlib1g-dev libexpat-dev git ninja-build expect \
device-tree-compiler
31 changes: 31 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,37 @@ jobs:
name: ${{ steps.toolchain-name-generator.outputs.TOOLCHAIN_NAME }}
path: riscv.tar.gz

test-sim:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
mode: [newlib, linux]
target: [rv64gc-lp64d]
sim: [spike]
exclude:
- sim: spike
mode: linux
steps:
- uses: actions/checkout@v2

- name: initialize submodules
run: |
git submodule init
git submodule update --recursive --progress --recommend-shallow
- name: install dependencies
run: sudo ./.github/setup-apt.sh

- name: build toolchain
run: |
TARGET_TUPLE=($(echo ${{ matrix.target }} | tr "-" "\n"))
./configure --prefix=/opt/riscv --with-arch=${TARGET_TUPLE[0]} --with-abi=${TARGET_TUPLE[1]} --with-sim=${{ matrix.sim }}
make -j $(nproc) ${{ matrix.mode }}
- name: make report
run: make report-${{ matrix.mode }} -j $(nproc)

build-multilib:
if: ${{ false }} # Disable until multilib errors are triaged
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit d1dfc7c

Please sign in to comment.