Build radare2 in GitHub Action
This commit is contained in:
parent
601403b4f9
commit
991c2e3262
|
@ -7,27 +7,49 @@ jobs:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Install radare2 dependencies
|
||||||
|
run: sudo apt install patch unzip git gcc make curl pkg-config xz-utils
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Checkout radare2
|
||||||
run: sudo apt install libreadline-dev libradare2-dev llvm-dev
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: radare2
|
||||||
|
repository: radareorg/radare2
|
||||||
|
ref: 4.5.0
|
||||||
|
|
||||||
- name: Create build directory
|
- name: Build radare2
|
||||||
run: mkdir build
|
working-directory: radare2
|
||||||
|
run: |
|
||||||
|
sys/debian.sh
|
||||||
|
mv radare2_*_amd64.deb radare2_amd64.deb
|
||||||
|
mv radare2-dev_*_amd64.deb radare2-dev_amd64.deb
|
||||||
|
|
||||||
- name: Configure
|
- name: Install radare2
|
||||||
working-directory: build
|
working-directory: radare2
|
||||||
run: >-
|
run: sudo apt install ./radare2*.deb
|
||||||
../configure
|
|
||||||
--prefix=/usr
|
|
||||||
--target=i686-w64-mingw32
|
|
||||||
--with-system-readline
|
|
||||||
--disable-nls
|
|
||||||
|
|
||||||
- name: Build
|
- name: Checkout gdb-msvc
|
||||||
working-directory: build
|
uses: actions/checkout@v2
|
||||||
run: make
|
|
||||||
|
|
||||||
- name: Install
|
- name: Install dependencies
|
||||||
working-directory: build
|
run: sudo apt install libreadline-dev llvm-dev
|
||||||
run: make install
|
|
||||||
|
- name: Create build directory
|
||||||
|
run: mkdir build
|
||||||
|
|
||||||
|
- name: Configure
|
||||||
|
working-directory: build
|
||||||
|
run: >-
|
||||||
|
../configure
|
||||||
|
--prefix=/usr
|
||||||
|
--target=i686-w64-mingw32
|
||||||
|
--with-system-readline
|
||||||
|
--disable-nls
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
working-directory: build
|
||||||
|
run: make
|
||||||
|
|
||||||
|
- name: Install
|
||||||
|
working-directory: build
|
||||||
|
run: make install
|
||||||
|
|
Loading…
Reference in New Issue