forked from digibyte/digibyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run `make check` every time a code push happens.
- Loading branch information
1 parent
1cb4d6b
commit 42f0e1b
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|