mirror of https://github.com/waku-org/nwaku.git
32 lines
702 B
YAML
32 lines
702 B
YAML
|
name: Test
|
||
|
|
||
|
on:
|
||
|
pull_request:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
env:
|
||
|
- { NPROC: 2 }
|
||
|
- { NPROC: 6 }
|
||
|
|
||
|
runs-on: [ubuntu-latest, macos-latest]
|
||
|
|
||
|
- name: Install dependencies
|
||
|
run: |
|
||
|
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" V=1 update
|
||
|
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" LOG_LEVEL=TRACE
|
||
|
|
||
|
- name: Cache Nim
|
||
|
id: cache-choosenim
|
||
|
uses: actions/cache@v1
|
||
|
with:
|
||
|
path: vendor/nimbus-build-system/vendor/Nim/bin
|
||
|
key: ${{ runner.os }}-nim-${{ hashFiles(vendor/nimbus-build-system/) }}
|
||
|
|
||
|
- name: Run Tests
|
||
|
run: |
|
||
|
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" test
|