-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
36 lines (33 loc) · 995 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: 'hermit-bench'
author: 'Carl Wachter'
description: 'Runs benchmarks on Hermit, which are given in a JSON file'
branding:
icon: activity
color: red
inputs:
benchmark-file:
description: 'Path to the benchmark JSON file'
required: true
build-command:
description: 'Command to build the project'
required: true
outputs:
result-file:
description: 'Path to the result JSON file'
value: ${{ steps.run-bench.outputs.results-path }}
runs:
using: 'composite'
steps:
- name: Build
run: |
cd ../../_actions/CarlWachter/hermit-bench/main
cargo build --package hermit-bench
cd ../../../../hermit-rs/hermit-rs
shell: bash
- name: Run benchmarks
id: run-bench
run: |
cd ../../_actions/CarlWachter/hermit-bench/main
cargo run ${{ inputs.benchmark-file }} ../../../../hermit-rs/hermit-rs ${{ inputs.build-command }}
echo "results-path=./results.json" >> $GITHUB_OUTPUT
shell: bash