Files
chipyard/.github/actions/run-tests/action.yml
2021-10-07 22:57:29 -07:00

38 lines
976 B
YAML

name: run-tests
description: 'Runs tests according to input parameters'
inputs:
tools-version:
description: Which toolchain to build
required: false
default: 'riscv-tools'
group-key:
description: group key
required: true
project-key:
description: project key
required: true
run-script:
description: rtl build script to use
required: false
default: "run-tests.sh"
runs:
using: "composite"
steps:
- name: Build toolchain
uses: ./.github/actions/toolchain-build
with:
tools-version: ${{ inputs.tools-version }}
# Note: You shouldn't need the other inputs since it shouldn't build RTL from scratch
- name: Build RTL
uses: ./.github/actions/toolchain-build
with:
tools-version: ${{ inputs.tools-version }}
group-key: ${{ inputs.group-key }}
- name: Run RTL tests
run: ./.github/scripts/${{ inputs.run-script }} ${{ inputs.project-key }}
shell: bash