enhancement/github-actions (#65)

* init file

* update

* fix
This commit is contained in:
Dean Eigenmann 2020-07-21 18:21:51 +02:00 committed by GitHub
parent d37928bb28
commit 9b1a9cdb66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 31 additions and 0 deletions

31
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,31 @@
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