fix/github-actions-mac-linux (#67)

This commit is contained in:
Dean Eigenmann
2020-07-21 19:14:12 +02:00
committed by GitHub
parent 3440551080
commit 0849c2fced
2 changed files with 27 additions and 66 deletions
+27 -18
View File
@@ -7,25 +7,34 @@ on:
- master
jobs:
build:
env:
- { NPROC: 2 }
- { NPROC: 6 }
test:
strategy:
matrix:
env:
- { NPROC: 2 }
- { NPROC: 6 }
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
env: ${{ matrix.env }}
runs-on: [ubuntu-latest, macos-latest]
name: ${{ matrix.platform }} - ${{ matrix.env.NPROC }} processes
- name: Install dependencies
run: |
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" V=1 update
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" LOG_LEVEL=TRACE
steps:
- name: Checkout code
uses: actions/checkout@v2
- 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: Install dependencies
run: |
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" V=1 update
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" LOG_LEVEL=TRACE
- name: Run Tests
run: |
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" test
- name: Cache Nim
id: cache-nim
uses: actions/cache@v1
with:
path: vendor/nimbus-build-system/vendor/Nim/bin
key: ${{ runner.os }}-nim-${{ hashFiles('.gitmodules') }}
- name: Run Tests
run: |
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" test