diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2023-06-01 21:03:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-01 21:03:08 +0800 |
commit | d1dfc7c18363f8993d0c800bf094f829d428347e (patch) | |
tree | 3678fe80c305bfc3b19927d5401f464113af8b78 /.github/workflows | |
parent | eb1ee1b149612b74a390ed966525ce93d3efbac0 (diff) | |
parent | 3ea87a1b928238fefff09c904cdb446e25c83587 (diff) | |
download | riscv-gnu-toolchain-d1dfc7c18363f8993d0c800bf094f829d428347e.zip riscv-gnu-toolchain-d1dfc7c18363f8993d0c800bf094f829d428347e.tar.gz riscv-gnu-toolchain-d1dfc7c18363f8993d0c800bf094f829d428347e.tar.bz2 |
Merge pull request #1259 from patrick-rivos/spike-ci2023.06.02
Add github action ci to make-report using the spike simulator
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build.yaml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0f05d50..339cecd 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 }} |