forked from esbmc/esbmc
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (52 loc) · 1.65 KB
/
benchbringup.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
name: Run a Benchmark
on:
workflow_dispatch:
inputs:
timeout:
description: 'Timeout for each test case (in seconds)'
required: true
default: '300'
options:
description: 'Command-line flags to pass via ESBMC_OPTS'
required: false
default: '-I /__w/esbmc/esbmc/src/cpp/library'
benchmark:
description: 'Benchmark to run (e.g. any benchmark as in regression/<benchmark>)'
required: true
default: 'esbmc-cpp/cpp'
logdirectory:
description: 'Log directory'
required: true
default: 'benchmark_logs'
jobs:
build-linux:
strategy:
matrix:
os: [ubuntu-latest]
name: Build ESBMC (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 720 # 12h
steps:
- name: Confirm the benchmark
run: echo ${{ github.event.inputs.benchmark }}
- uses: actions/checkout@v2
- name: Build ESBMC
env:
TEST_TIMEOUT: ${{ inputs.timeout }}
BENCHMARK_TO_RUN: ${{ inputs.benchmark }}
LOG_DIR: ${{ inputs.logdirectory }}
run: ./scripts/build.sh -b Release -r On
- uses: actions/upload-artifact@v1
with:
name: release-linux
path: ./build/src/esbmc/esbmc
- name: Run user-specified benchmark
continue-on-error: true
env:
ESBMC_OPTS: ${{ inputs.options }}
LOG_DIR: ${{ inputs.logdirectory }}
run: cd build/ && ctest -j4 --output-on-failure --progress .
- uses: actions/upload-artifact@v2
with:
name: benchmark-logs
path: ./build/regression/${{ inputs.logdirectory }}