-
Notifications
You must be signed in to change notification settings - Fork 538
86 lines (71 loc) · 2.34 KB
/
codecov.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
name: Test the code coverage
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip version
run: |
python -m pip install -U pip
- name: Install dependencies
run: |
sudo apt-get install python3-setuptools lcov libboost-dev libgmp-dev
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: "14.0"
directory: ${{ runner.temp }}/llvm
- name: Install Z3
run: |
sudo apt-get install libz3-dev
python -m pip install z3-solver
python -m pip install importlib-resources
- name: Install Ninja
run: |
sudo apt-get install ninja-build
- name: Install Meson
run: |
python -m pip install meson
- name: Install Bitwuzla
run: |
git clone https://github.com/bitwuzla/bitwuzla.git
cd bitwuzla
git checkout -b 0.4.0 0.4.0
python ./configure.py --shared
cd build
sudo ninja install
sudo ldconfig
cd ..
- name: Install Capstone
run: |
wget https://github.com/aquynh/capstone/archive/5.0.1.tar.gz
tar -xf ./5.0.1.tar.gz
cd ./capstone-5.0.1
bash ./make.sh
sudo make install
cd ../
- name: Install Unicorn
run: |
python -m pip install unicorn==2.0.0
- name: Install LIEF
run: |
python -m pip install lief
- name: Compile Triton
run: |
mkdir ./build
cd ./build
cmake -DGCOV=on -DZ3_INTERFACE=on -DBITWUZLA_INTERFACE=on -DBITWUZLA_INCLUDE_DIRS=/usr/local/include -DBITWUZLA_LIBRARIES=/usr/local/lib/x86_64-linux-gnu/libbitwuzla.so -DLLVM_INTERFACE=on -DCMAKE_PREFIX_PATH=${{env.LLVM_PATH}} ..
sudo make -j3 install
- name: Unittests
run: |
make -C build check
bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"