rizin/.github/workflows/ccpp.yml

42 lines
1,019 B
YAML

name: Radare2 CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: ['12']
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Install pkg-config with Homebrew
if: matrix.os == 'macos-latest'
run: brew install pkg-config
- name: Checkout our Testsuite Binaries
uses: actions/checkout@v2
with:
repository: radareorg/radare2-testbins
path: test/bins
- name: Configure with ACR
run: ./configure --prefix=${HOME}
- name: Build
run: make
- name: Install and run tests
run: |
# Install the radare2
export PATH=${HOME}/bin:${PATH}
export LD_LIBRARY_PATH=${HOME}/lib:${HOME}/lib64:${LD_LIBRARY_PATH}
export PKG_CONFIG_PATH=${HOME}/lib/pkgconfig:${PKG_CONFIG_PATH}
make install
# Running the test suite
cd test && make