-
Notifications
You must be signed in to change notification settings - Fork 19
54 lines (52 loc) · 1.93 KB
/
deploy.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: AVR (single test)
on:
workflow_dispatch:
inputs:
timeout:
description: timeout (in seconds)
default: 300
required: true
file:
description: Benchmark file
default: "examples/btor2/counter.btor2"
required: true
name:
description: Benchmark name
default: "test"
required: true
args:
description: Additional arguments
default: ""
required: false
jobs:
job1:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install Yosys
run: |
sudo add-apt-repository -y ppa:saltmakrell/ppa
sudo apt-get update -q
sudo apt-get install yosys
if: endsWith(github.event.inputs.file, '.v')
- name: Build AVR and all dependencies
run: |
chmod +x "deps/build_deps.sh"
chmod +x "build.sh"
chmod +x "build/avr"
./build.sh
- name: Run file ${{ github.event.inputs.file }} with args ${{ github.event.inputs.args }}
run: |
ENVTIMEOUT=${{ github.event.inputs.timeout }} ./ci/deploy_bm.sh ${{ github.event.inputs.file }} ${{ github.event.inputs.name }} ${{ github.event.inputs.args }}
- name: Upload avr stats
uses: actions/upload-artifact@v2
with:
name: stats.txt
path: output/work_${{ github.event.inputs.name }}/${{ github.event.inputs.name }}.results
if: ${{ always() }}