mirror of
https://github.com/radareorg/radius2.git
synced 2026-11-07 06:36:03 -10:00
CI
This commit is contained in:
1 parent
6b9727763d
commit
8a2e50b9cf
3 files changed
+73
No files matched your search
@@ -0,0 +1,44 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build-and-release:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y gawk binutils build-essential
|
||||
|
||||
- name: Install radare2
|
||||
run: |
|
||||
git clone https://github.com/radareorg/radare2.git --depth=1
|
||||
cd radare2
|
||||
./sys/install.sh
|
||||
|
||||
- name: Build Package
|
||||
run: |
|
||||
cd dist/debian
|
||||
make
|
||||
mv *.deb ../../target/release/
|
||||
zip -j ../../target/release/radius2.zip ../../target/release/radius2
|
||||
|
||||
- name: Create GitHub Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: |
|
||||
target/release/radius2.zip
|
||||
target/release/*.deb
|
||||
name: Release ${{ github.ref_name }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
@@ -0,0 +1,27 @@
|
||||
name: Rust
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install radare2
|
||||
run: |
|
||||
git clone https://github.com/radareorg/radare2.git --depth=1
|
||||
cd radare2
|
||||
./sys/install.sh
|
||||
- name: Build
|
||||
run: cargo build --verbose --release
|
||||
- name: Run tests
|
||||
run: cargo test --verbose --release
|
||||
Vendored
+2
@@ -14,6 +14,8 @@ DOCKCROSS=$(PWD)/../dockcross
|
||||
#R2PLUGDIR=$(shell r2 -H R2_LIBR_PLUGINS)
|
||||
#R2PLUGDIR=/usr/lib/radare2/$(R2_VERSION)
|
||||
|
||||
R2_LIBEXT=$(shell r2 -H R2_LIBEXT)
|
||||
|
||||
ifeq ($(R2_LIBEXT),)
|
||||
error:
|
||||
@echo "Cannot find r2"
|
||||
|
||||
Reference in new issue
Block a user