ci: Combine tests in matrix (#1120)

This commit is contained in:
Nils Wistoff 2023-03-17 13:57:54 +01:00 committed by GitHub
parent 2c61865b18
commit 08ded80239
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,12 +7,13 @@ name: ci
on: [push, pull_request]
jobs:
#######
# ISA #
#######
base-isa:
name: Base ISA Tests
riscv-tests:
name: riscv-tests
runs-on: ubuntu-latest
strategy:
matrix:
testcase: [asm-tests, mul, amo, fp, benchmarks]
cache: [WB_DCACHE, WT_DCACHE]
env:
RISCV: /riscv
steps:
@ -21,74 +22,5 @@ jobs:
submodules: recursive
- name: Prepare
run: ci/setup.sh
- name: run asm tests (Write-Back Cache)
run: make run-asm-tests-verilator defines=WB_DCACHE
- name: run asm tests (Write-through Cache)
run: make run-asm-tests-verilator defines=WT_DCACHE
mul-isa:
name: Mul/Div ISA Tests
runs-on: ubuntu-latest
env:
RISCV: /riscv
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Prepare
run: ci/setup.sh
- name: run mul tests (Write-Back Cache)
run: make run-mul-verilator defines=WB_DCACHE
- name: run mul tests (Write-through Cache)
run: make run-mul-verilator defines=WT_DCACHE
amo-isa:
name: Atomic ISA Tests
runs-on: ubuntu-latest
env:
RISCV: /riscv
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Prepare
run: ci/setup.sh
- name: run amo tests (Write-Back Cache)
run: make run-amo-verilator defines=WB_DCACHE
- name: run amo tests (Write-through Cache)
run: make run-amo-verilator defines=WT_DCACHE
fp-isa:
name: Floating-point ISA Tests
runs-on: ubuntu-latest
env:
RISCV: /riscv
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Prepare
run: ci/setup.sh
- name: run fp tests (Write-through Cache)
run: make run-fp-verilator defines=WT_DCACHE
- name: run fp tests (Write-Back Cache)
run: make run-fp-verilator defines=WB_DCACHE
##############
# Benchmarks #
##############
benchmarks:
name: Benchmarks
runs-on: ubuntu-latest
env:
RISCV: /riscv
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Prepare
run: ci/setup.sh
- name: run riscv benchmarks (Write-Back Cache)
run: make run-benchmarks-verilator defines=WB_DCACHE
- name: run riscv benchmarks (Write-through Cache)
run: make run-benchmarks-verilator defines=WT_DCACHE
- name: run tests
run: make run-${{ matrix.testcase}}-verilator defines=${{ matrix.cache }}