forked from nowsecure/r2frida
-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (79 loc) · 2.32 KB
/
ci.yml
File metadata and controls
82 lines (79 loc) · 2.32 KB
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
name: ci
env:
R2V: 5.5.0
on:
push:
branches:
- master
pull_request:
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Building Radare2
run: ( git clone --depth=1 https://github.com/radareorg/radare2 && cd radare2 && sys/install.sh )
- name: Building r2frida
run: ./configure && make -j && sudo make install
- name: Packaging
run: make -C dist/debian
- name: Pub
uses: actions/upload-artifact@v2
with:
name: r2frida-${{env.R2V}}_amd64.deb
path: dist/debian/*.deb
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Building Radare2
run: ( git clone --depth=1 https://github.com/radareorg/radare2 && cd radare2 && sys/install.sh )
- name: Building r2frida
run: ./configure && make -j && sudo make install
- name: Packaging
run: make -C dist/macos
- name: Pub
uses: actions/upload-artifact@v2
with:
if-no-files-found: error
name: r2frida-${{env.R2V}}.pkg
path: dist/macos/r2frida-*.pkg
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.7.x
- name: Preparing msvc toolchain
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
- name: dependencies
shell: bash
run: |
pip install ninja meson wget
choco install zip
- name: install r2
shell: bash
run: |
python -m wget https://github.com/radareorg/radare2/releases/download/${R2V}/radare2-${{env.R2V}}-w64.zip -o r2.zip
unzip r2.zip
mv radare2-${{env.R2V}}-w64 radare2 || mv radare2-w64-${{env.R2V}} radare2
pwd
- name: make
shell: cmd
run: |
cd
set PKG_CONFIG_PATH=%CD%\radare2\lib\pkgconfig
set PATH=%CD%\radare2\bin;%PATH%
set ARCH=x64
git submodule update --init
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
build.bat
zip -r r2frida-${{env.R2V}}-w64.zip src\io_frida.dll
- uses: actions/upload-artifact@v2
with:
if-no-files-found: error
name: r2frida-${{env.R2V}}-w64.zip
path: r2frida-${{env.R2V}}-w64.zip