-
Notifications
You must be signed in to change notification settings - Fork 25
117 lines (98 loc) · 3.04 KB
/
svcomp.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: "SV-Comp test suite"
on:
workflow_run:
workflows: [Build]
types:
- completed
branches:
- "master"
pull_request:
branches:
- '*'
jobs:
build:
name: "Build VAST"
strategy:
matrix:
llvm-version: [17]
image-version: [22.04]
runs-on: ubuntu-${{ matrix.image-version }}
timeout-minutes: 60
container:
image:
ghcr.io/trailofbits/vast-ubuntu-${{ matrix.image-version }}-llvm-${{ matrix.llvm-version }}-dev:latest
env:
CMAKE_PREFIX_PATH: "/usr/lib/llvm-${{ matrix.llvm-version }}/lib/cmake/mlir/;/usr/lib/llvm-${{ matrix.llvm-version }}/lib/cmake/clang/"
TOOLCHAIN: ${{ github.workspace }}/cmake/lld.toolchain.cmake
LLVM_EXTERNAL_LIT: "/usr/local/bin/lit"
steps:
- name: Clone the VAST repository
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 1
- name: Configure build
run: |
cmake --preset ninja-multi-default --toolchain ${TOOLCHAIN} \
-DCMAKE_VERBOSE_MAKEFILE=True \
-DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} \
-DLLVM_EXTERNAL_LIT=${LLVM_EXTERNAL_LIT}
- name: Build release
run: |
cmake --build --preset ninja-rel -j $(nproc)
cpack -G TXZ --config ./builds/ninja-multi-default/CPackConfig.cmake
- name: Upload VAST build artifact
uses: actions/upload-artifact@v4
with:
name: VAST
path: ./builds/ninja-multi-default/package/*
retention-days: 1
test:
name: "Run SV-Comp test suite"
needs: build
strategy:
matrix:
llvm-version: [17]
image-version: [22.04]
vast-target: ['hl']
runs-on: ubuntu-${{ matrix.image-version }}
timeout-minutes: 360
container:
image:
ghcr.io/trailofbits/vast-ubuntu-${{ matrix.image-version }}-llvm-${{ matrix.llvm-version }}-dev:latest
steps:
- name: Fetch VAST artifact
uses: actions/download-artifact@v4
with:
name: VAST
- name: Unpack VAST
run: |
mkdir vast && tar -xf VAST-* -C vast --strip-components=1
- name: Export vast binaries
run: |
echo "${PWD}/vast/bin/" >> $GITHUB_PATH
- name: Install test suite dependencies
run: |
apt-get update
apt-get -y install git
- name: Clone test suite repository
run: |
git clone --depth=1 https://gitlab.com/sosy-lab/benchmarking/sv-benchmarks.git
uses: actions/checkout@v4
- name: Clone patch repository
with:
repository: trailofbits/sv-bench-patch
ref: main
path: sv-bench-patch
fetch-depth: 1
- name: Apply patch
run: |
./sv-bench-patch/apply.sh ./sv-benchmarks
- name: Run benchmarks
run: |
sh ./sv-bench-patch/compie-all.sh -d ./sv-benchmarks
- name: Upload results
uses: actions/upload-artifact@v4
with:
path: ./stats
name: results-${{ matrix.vast-target }}