Skip to content

Commit

Permalink
Create ci-coverage.yml
Browse files Browse the repository at this point in the history
Run `make check` every time a code push happens.
  • Loading branch information
SmartArray committed Apr 20, 2021
1 parent 1cb4d6b commit 42f0e1b
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: 'Build and check with wallet'

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [x86_64-linux-gnu]

steps:
- uses: actions/checkout@v2

- name: Cache depends
id: cache-dependencies
uses: actions/cache@v2
with:
path: depends/
key: ${{ matrix.os }}-${{ hashFiles('depends/packages/*.mk') }}

- name: Update apt repos
run: sudo apt-get update

- name: Install base dependencies
run: sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils curl git ca-certificates ccache

- name: Build depends
run: cd depends/ && make -j4 HOST=${{matrix.os}}

- name: Auto generate
run: ./autogen.sh

- name: configure
run: ./configure --with-incompatible-bdb --prefix=`pwd`/depends/${{ matrix.os }}

- name: make
run: make -j4

- name: check
run: make check

0 comments on commit 42f0e1b

Please sign in to comment.