132 lines (130 loc) · 3.77 KB
/
linux.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
name: linux
on:
push:
branches:
- master
pull_request:
jobs:
linux-wasi:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Installing with symlinks
run: |
sys/wasi.sh
- uses: actions/upload-artifact@v2
with:
name: linux-wasi
path: radare2-*-wasi.zip
retention-days: 30
linux-static:
if: contains(github.ref, 'master') || contains(github.ref, 'ci-')
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Installing the musl runtime
run: |
sudo apt install musl-tools
- name: Building static r2 with acr
run: |
cp -f dist/plugins-cfg/plugins.static.nogpl.cfg plugins.cfg
NOLTO=1 sys/static.sh
# NOLTO=1 sys/static.sh
make -C binr/blob
tar cJvf r2-static.tar.xz r2-static
- name: Pub
uses: actions/upload-artifact@v2
with:
name: linux-static
path: r2-static.tar.xz
retention-days: 30
- name: Static r2 build with meson
run: |
sudo apt-get --assume-yes install python3-wheel python3-setuptools cabextract gperf
sudo pip3 install meson ninja
CFLAGS="-static" LDFLAGS="-static" meson --prefix=${HOME}/.local --buildtype release --default-library static build
ninja -C build && ninja -C build install
linux-acr-deb-64:
if: contains(github.ref, 'master') || contains(github.ref, 'ci-')
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Packaging for Debian
run: sys/debian.sh
- name: Pub
uses: actions/upload-artifact@v2
with:
name: linux-acr-deb-64
path: dist/debian/*/*.deb
retention-days: 30
linux-acr-deb-32:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Packaging for 32bit Debian
run: |
sudo apt install gcc-multilib gperf
export CFLAGS=-m32
export LDFLAGS=-m32
export ARCH=i386
sys/debian.sh
- name: Pub
uses: actions/upload-artifact@v2
with:
name: linux-acr-deb-32
path: dist/debian/*/*.deb
retention-days: 30
## RPM PACKAGES DISABLED
# linux-meson-rpm:
# runs-on: ubuntu:18.04
# container: centos:8
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Prepare Skeleton
# run: |
# mkdir -p SOURCES SPECS
# cp -f dist/rpm/*spec SPECS
# wget -O https://github.com/radareorg/radare2/archive/master/radare2-5.1.0-git.tar.gz
# - name: rpmbuild
# uses: robertdebock/rpmbuild-action@1.1.1
# - name: Pub
# uses: actions/upload-artifact@v2
# with:
# name: linux-meson-rpm
# path: RPMS/*/*.rpm *.rpm dist/rpm/*.rpm
# retention-days: 30
# centos-meson-rpm:
# runs-on: ubuntu:18.04
# container: centos:8
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Install tools for CentOS:8
# run: |
# yum install -y patch unzip git gcc make python38 python38-pip rpm-build rpmdevtools wget
# pip3.8 install meson ninja r2pipe
# - name: Building with Meson
# run: |
# meson build
# ninja -C build
# ninja -C build install
# - name: RPM Packaging
# run: |
# cp -f dist/rpm/radare2.spec .
# rpmdev-setuptree
# mkdir -p rpmbuild/SOURCES
# cd rpmbuild/SOURCES
# wget https://github.com/radareorg/radare2/archive/5860c3efc12d4b75e72bdce4b1d3834599620913/radare2-5.1.0-git.tar.gz
# cd -
# rpmbuild -ba radare2.spec
# - name: Pub
# uses: actions/upload-artifact@v2
# with:
# name: centos-meson-rpm
# path: rpmbuild/RPMS/*/*.rpm
# retention-days: 30