-
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (58 loc) · 1.59 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
name: CI
env:
R2V: 5.9.2
on:
push:
branches:
# - master
# pull_request:
# schedule:
# - cron: '0 0 * * 1'
jobs:
linux:
name: linux
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Installing radare2
run: |
wget https://github.com/radareorg/radare2/releases/download/${{env.R2V}}/radare2_${{env.R2V}}_amd64.deb
wget https://github.com/radareorg/radare2/releases/download/${{env.R2V}}/radare2-dev_${{env.R2V}}_amd64.deb
sudo dpkg -i radare2_${{env.R2V}}_amd64.deb
sudo dpkg -i radare2-dev_${{env.R2V}}_amd64.deb
- name: Installing r2frida
run: |
wget https://github.com/nowsecure/r2frida/releases/download/${{env.R2V}}/r2frida_${{env.R2V}}_amd64.deb
sudo dpkg -i r2frida_${{env.R2V}}_amd64.deb
- name: Building
run: make
# commented because requires r2-5.9.3
# - name: Running tests
# run: r2r test/db
- uses: actions/upload-artifact@v4
with:
name: sarif.r2.js
path: sarif.r2.js
macos:
name: macos
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Installing radare2
run: |
git clone --depth=1 https://github.com/radareorg/radare2
radare2/sys/install.sh > /dev/null
- name: Installing r2frida
run: |
r2pm -ci r2frida > /dev/null
- name: Building
run: make
- name: Running tests
run: make citest
# do not upload twice
# - uses: actions/upload-artifact@v4
# with:
# name: sarif.r2.js
# path: sarif.r2.js