Clear build workflow

This commit is contained in:
Pau Rodriguez-Estivill 2022-02-28 20:25:26 +01:00 committed by pancake
parent 64edc476ff
commit 7767100782
8 changed files with 85 additions and 92 deletions

View File

@ -71,6 +71,6 @@ jobs:
tar --transform 's/android-dir/data\/data\/org.radareorg.radare2installer/g' -cvf radare2-android-${{ matrix.name }}.tar.gz android-dir/
- uses: actions/upload-artifact@v2
with:
name: android-meson
name: android-meson-${{ matrix.name }}
path: /tmp/radare2-android-${{ matrix.name }}.tar.gz
retention-days: 30

View File

@ -24,7 +24,6 @@ jobs:
with:
path: dist/macos/*.pkg
name: macos-acr
retention-days: 30
# macos-acr-m1:
# runs-on: macos-latest
# steps:
@ -37,7 +36,6 @@ jobs:
# with:
# path: dist/macos/*.pkg
# name: macos-acr-m1
# retention-days: 30
# Mobile
ios-cydia32:
@ -55,7 +53,6 @@ jobs:
with:
name: ios-cydia32
path: ./dist/cydia/radare2/radare2-arm32_*_iphoneos-arm.deb
retention-days: 30
ios-cydia:
if: contains(github.ref, 'master') || contains(github.ref, 'ci-')
runs-on: macos-latest
@ -78,4 +75,3 @@ jobs:
path: |
./r2ios-sdk.zip
./dist/cydia/radare2*/*.deb
retention-days: 30

View File

@ -110,6 +110,21 @@ jobs:
run: |
export LD_LIBRARY_PATH=/usr/local/lib
make tests
linux-static-meson:
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: 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
macos-test:
runs-on: macos-latest
if: contains(github.ref, 'master') || contains(github.ref, 'ci-')
@ -222,3 +237,70 @@ jobs:
export R2R_SKIP_ARCHOS=1
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.5
make -C test fuzz-tests
w64-make:
runs-on: windows-2019
steps:
- name: Win configure Pagefile
uses: al-cheb/configure-pagefile-action@v1.2
with:
minimum-size: 16GB
maximum-size: 16GB
disk-root: "C:"
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-python@v2
# with:
# python-version: '3.7'
- name: Preparing nmake
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install git+https://github.com/frida/meson.git@f7f25b19a8d71cebf8e2934733eb041eb6862eee
pip install ninja r2pipe wget
- name: Build with meson + ninja
shell: cmd
run: |
REM preconfigure
call configure
call make
- name: Test executable
# continue-on-error: true
shell: cmd
run: |
cd prefix\bin
radare2 -v
w32-mingw:
if: contains(github.ref, 'master') || contains(github.ref, 'ci-')
name: w32-mingw
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Compiling
run: |
export PATH=${HOME}/.local/bin:${HOME}/Library/Python/3.9/bin:${PATH}
sudo apt-get --assume-yes install python3-wheel gperf python3-setuptools cabextract gperf gcc-mingw-w64
sys/mingw32.sh
- uses: actions/upload-artifact@v2
with:
name: w32-mingw
path: radare2*.zip
w64-mingw:
name: w64-mingw
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Compiling
run: |
export PATH=${HOME}/.local/bin:${HOME}/Library/Python/3.9/bin:${PATH}
sudo apt-get --assume-yes install python3-wheel gperf python3-setuptools cabextract gperf gcc-mingw-w64
sys/mingw64.sh
- uses: actions/upload-artifact@v2
with:
name: w64-mingw
path: radare2*.zip

View File

@ -37,4 +37,3 @@ jobs:
with:
name: freebsd
path: radare2-freebsd.tgz
retention-days: 30

View File

@ -19,7 +19,6 @@ jobs:
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
@ -42,12 +41,6 @@ jobs:
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
@ -61,7 +54,6 @@ jobs:
with:
name: linux-acr-deb-64
path: dist/debian/*/*.deb
retention-days: 30
linux-acr-deb-32:
runs-on: ubuntu-18.04
steps:
@ -79,7 +71,6 @@ jobs:
with:
name: linux-acr-deb-32
path: dist/debian/*/*.deb
retention-days: 30
## RPM PACKAGES DISABLED
# linux-meson-rpm:
# runs-on: ubuntu:18.04
@ -99,7 +90,6 @@ jobs:
# 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
@ -129,4 +119,3 @@ jobs:
# with:
# name: centos-meson-rpm
# path: rpmbuild/RPMS/*/*.rpm
# retention-days: 30

View File

@ -119,7 +119,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/artifacts/android-meson/radare2-android-x86_64.tar.gz
asset_path: dist/artifacts/android-meson-x86_64/radare2-android-x86_64.tar.gz
asset_name: radare2-${{ steps.r2v.outputs.branch }}-android-x86_64.tar.gz
asset_content_type: application/x-tar
- name: Upload asset for Android (aarch64)

View File

@ -7,77 +7,6 @@ on:
pull_request:
jobs:
w32-mingw:
if: contains(github.ref, 'master') || contains(github.ref, 'ci-')
name: w32-mingw
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Compiling
run: |
export PATH=${HOME}/.local/bin:${HOME}/Library/Python/3.9/bin:${PATH}
sudo apt-get --assume-yes install python3-wheel gperf python3-setuptools cabextract gperf gcc-mingw-w64
sys/mingw32.sh
- uses: actions/upload-artifact@v2
with:
name: w32-mingw
path: radare2*.zip
retention-days: 30
w64-mingw:
name: w64-mingw
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Compiling
run: |
export PATH=${HOME}/.local/bin:${HOME}/Library/Python/3.9/bin:${PATH}
sudo apt-get --assume-yes install python3-wheel gperf python3-setuptools cabextract gperf gcc-mingw-w64
sys/mingw64.sh
- uses: actions/upload-artifact@v2
with:
name: w64-mingw
path: radare2*.zip
retention-days: 30
w64-make:
runs-on: windows-2019
steps:
- name: Win configure Pagefile
uses: al-cheb/configure-pagefile-action@v1.2
with:
minimum-size: 16GB
maximum-size: 16GB
disk-root: "C:"
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-python@v2
# with:
# python-version: '3.7'
- name: Preparing nmake
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install git+https://github.com/frida/meson.git@f7f25b19a8d71cebf8e2934733eb041eb6862eee
pip install ninja r2pipe wget
- name: Extract r2 version
run: echo "##[set-output name=branch;]$( cd sys; python version.py )"
id: r2v
- name: Build with meson + ninja
shell: cmd
run: |
REM preconfigure
call configure
call make
- name: Test executable
# continue-on-error: true
shell: cmd
run: |
cd prefix\bin
radare2 -v
w32-meson:
if: contains(github.ref, 'master') || contains(github.ref, 'ci-')
runs-on: windows-2019
@ -125,7 +54,6 @@ jobs:
path: |
radare2-${{ steps.r2v.outputs.branch }}-w32.zip
# radare2-win-installer\Output\radare2.exe
retention-days: 30
w64-meson:
runs-on: windows-2019
steps:
@ -176,4 +104,3 @@ jobs:
path: |
radare2-${{ steps.r2v.outputs.branch }}-w64.zip
# radare2-win-installer\Output\radare2.exe
retention-days: 30

View File

@ -2,7 +2,7 @@
set -e
WORKFLOWS="linux apple android windows freebsd"
WORKFLOWS="linux apple android windows freebsd ci"
DESTDIR="dist/artifacts"
LIMIT=100