Add untracked file #48
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2021 OpenHW Group | |
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | |
# SPDX-License-Identifier: Apache-2.0 | |
# Run functional regression checks | |
name: ci | |
on: [push, pull_request] | |
jobs: | |
build-riscv-tests: | |
name: build-riscv-tests | |
runs-on: ubuntu-latest | |
env: | |
NUM_JOBS: 8 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Prepare | |
run: | | |
ci/setup.sh | |
tar cfz tools.tar tools/ | |
- name: Archive production artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: compiled-tools | |
path: | | |
tools.tar | |
execute-riscv-tests: | |
name: execute-riscv-tests | |
runs-on: ubuntu-latest | |
env: | |
NUM_JOBS: 8 | |
SPIKE_TANDEM: 1 | |
strategy: | |
matrix: | |
testcase: [ verif/regress/dv-riscv-arch-test.sh , verif/regress/smoke-tests.sh ] | |
target: [ veri-testharness ] | |
needs: | |
build-riscv-tests | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Download a single artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: compiled-tools | |
- name: Run Tests | |
run: | | |
export RISCV=$(pwd)/tools/riscv-toolchain/ | |
set -x | |
tar xf tools.tar | |
source verif/sim/setup-env.sh | |
DV_SIMULATORS=${{matrix.target}} bash ${{matrix.testcase}} |