-
-
Notifications
You must be signed in to change notification settings - Fork 116
68 lines (62 loc) · 1.66 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: CI
on:
push:
pull_request:
jobs:
build-extras:
name: Build radare2 extras and r2pipe
runs-on: ubuntu-latest
env:
BUILDS: 'blessr2 keystone-lib keystone r2svd unicorn-lib'
TESTS: 'keystone'
R2PIPE_TESTS: 'r2pipe-js r2pipe-py'
steps:
- uses: actions/checkout@v2
with:
repository: radareorg/radare2
ref: master
path: ./radare2
- name: Install dependencies
run: sudo apt-get --assume-yes install libjansson-dev libboost-dev libcurl4-openssl-dev python3-wheel python3-setuptools && sudo pip3 install meson ninja
- name: Install radare2
run: |
export PATH=$PATH:/usr/local/bin
meson --prefix=/usr --buildtype=release build && ninja -C build && sudo ninja -C build install
working-directory: radare2
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
path: ./radare2-extras
- name: Init r2pm
run: r2pm -U
- name: Compile and install plugins
run: |
set -e
export R2PM_GITDIR=`pwd`
export R2PM_GITSKIP=1
for p in $BUILDS ; do
echo $p
r2pm -i $p
done
set +e
- name: Test plugins
working-directory: radare2/test
run: |
set -e
export R2PM_GITDIR=`pwd`
export R2PM_GITSKIP=1
for p in $TESTS ; do
echo $p
make $p
done
set +e
- name: Compile and install r2pipe
run: |
set -e
export R2PM_GITDIR=`pwd`
export R2PM_GITSKIP=1
for p in $R2PIPE_TESTS ; do
echo $p
r2pm -i $p
done
set +e