Skip to content

Commit fe85353

Browse files
committed
ci: add local Action 'RunTest'
Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
1 parent 7c51da1 commit fe85353

File tree

2 files changed

+133
-297
lines changed

2 files changed

+133
-297
lines changed

.github/RunTest/action.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: 'Run fpga-tool-perf test'
2+
description: 'Run fpga-tool-perf test'
3+
4+
inputs:
5+
environment:
6+
description: 'Name of the Conda environment.'
7+
required: true
8+
project:
9+
description: 'Project.'
10+
required: true
11+
board:
12+
description: 'Board.'
13+
required: true
14+
toolchain:
15+
description: 'Toolchain.'
16+
required: true
17+
install:
18+
description: 'Additional install options.'
19+
required: false
20+
timeout:
21+
description: 'Timeout.'
22+
required: false
23+
default: 7200
24+
25+
runs:
26+
using: 'composite'
27+
steps:
28+
29+
- shell: bash
30+
run: ./.github/scripts/install.sh -t ${{ inputs.toolchain }} -b ${{ inputs.board }} ${{ inputs.install }}
31+
32+
- shell: bash
33+
run: >
34+
source env.sh ${{ inputs.environment }} &&
35+
python3 exhaust.py
36+
--verbose
37+
--project ${{ inputs.project }}
38+
--toolchain ${{ inputs.toolchain }}
39+
--board ${{ inputs.board }}
40+
--build_type ${{ inputs.project }}-${{ inputs.toolchain }}-${{ inputs.board }}
41+
--fail
42+
--timeout ${{ inputs.timeout }}
43+
44+
- uses: actions/upload-artifact@v3
45+
if: ${{ always() }}
46+
with:
47+
path: |
48+
**/results*.gz
49+
**/plot_*.svg

0 commit comments

Comments
 (0)