mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-19 11:54:46 -04:00
ci: Combine tests in matrix (#1120)
This commit is contained in:
parent
2c61865b18
commit
08ded80239
1 changed files with 8 additions and 76 deletions
84
.github/workflows/ci.yml
vendored
84
.github/workflows/ci.yml
vendored
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Reference in a new issue