Try abstracting more away into composite actions

This commit is contained in:
abejgonzalez
2021-10-07 22:57:29 -07:00
parent f117f7a0fe
commit ff41808df4
5 changed files with 170 additions and 781 deletions

View File

@@ -2,6 +2,13 @@ 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
@@ -13,8 +20,18 @@ inputs:
runs:
using: "composite"
steps:
- name: run rtl build script cache of chipyard root should have been loaded by prepare-rtl
run: |
./.github/scripts/${{ inputs.run-script }} ${{ inputs.project-key }}
shell: bash
- 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