aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorPatrick O'Neill <patrick@rivosinc.com>2023-05-26 09:42:51 -0700
committerPatrick O'Neill <patrick@rivosinc.com>2023-05-26 15:27:09 -0700
commit3ea87a1b928238fefff09c904cdb446e25c83587 (patch)
treec633c76c8278e6c1122bdb215b8852d4ccc0623c /.github
parent2dce4b2612cda323f9301a4db0d0adf922cc0ad3 (diff)
downloadriscv-gnu-toolchain-3ea87a1b928238fefff09c904cdb446e25c83587.zip
riscv-gnu-toolchain-3ea87a1b928238fefff09c904cdb446e25c83587.tar.gz
riscv-gnu-toolchain-3ea87a1b928238fefff09c904cdb446e25c83587.tar.bz2
Add github action ci to make-report using the spike simulator
Diffstat (limited to '.github')
-rwxr-xr-x.github/setup-apt.sh3
-rw-r--r--.github/workflows/build.yaml31
2 files changed, 33 insertions, 1 deletions
diff --git a/.github/setup-apt.sh b/.github/setup-apt.sh
index 1ee5d8f..0ad82fb 100755
--- a/.github/setup-apt.sh
+++ b/.github/setup-apt.sh
@@ -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
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 5af5535..41a7320 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -66,6 +66,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 }}