-
Notifications
You must be signed in to change notification settings - Fork 29
47 lines (36 loc) · 1.08 KB
/
test.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
name: CI
on:
pull_request:
branches: [ main ]
push:
branches:
- main
paths:
- '!README.md'
jobs:
build-and-test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: install clang-12
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 12 all
- name: get aflpp
uses: actions/checkout@v3
with:
repository: AFLplusplus/AFLplusplus
path: ${{ github.workspace }}/aflpp
- name: configure
run: CC=clang-12 CXX=clang++-12 cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/install \
-DAFLPP_ROOT=${{ github.workspace }}/aflpp
- name: build
run: CC=clang-12 CXX=clang++-12 cmake --build ${{ github.workspace }}/build
- name: install
run: CC=clang-12 CXX=clang++-12 cmake --install ${{ github.workspace }}/build
- name: install lit
run: pip install lit
- name: test
run: lit --verbose tests
working-directory: ${{ github.workspace }}/build