-
-
Notifications
You must be signed in to change notification settings - Fork 8
43 lines (40 loc) · 1.32 KB
/
ci.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
name: CI
on:
push:
branches:
- dev
- stable
- 'test-*'
pull_request:
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install ninja-build qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libqt5svg5-dev qttools5-dev
echo "meson==0.61.1 --hash=sha256:81113785106d485e38d85b92169dca112e6e077880731ac37d29fc9898e1efb5" > requirements.txt
sudo pip3 install -r requirements.txt # ubuntu meson is too old
- name: Build and install rizin
run: |
git clone https://github.com/rizinorg/rizin
cd rizin
meson build --prefix=/usr
ninja -C build
sudo ninja -C build install
- name: Build and install cutter
run: |
git clone --recursive https://github.com/rizinorg/cutter
cd cutter
cmake -Bbuild -GNinja -DCUTTER_USE_BUNDLED_RIZIN=OFF -DCMAKE_INSTALL_PREFIX=/usr
ninja -C build
sudo ninja -C build install
- name: Build rz-retdec
run: |
cmake -Bbuild -GNinja -DCMAKE_INSTALL_PREFIX=$HOME/.local -DBUILD_CUTTER_PLUGIN=ON
ninja -C build
ninja -C build install
- name: Run tests
run: make -C test