From 34405510800ca0cb53fe4f3a6da3268640afca73 Mon Sep 17 00:00:00 2001 From: Dean Eigenmann <7621705+decanus@users.noreply.github.com> Date: Tue, 21 Jul 2020 18:21:51 +0200 Subject: [PATCH] enhancement/github-actions (#65) * init file * update * fix --- .github/workflows/test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 000000000..213cee6ee --- /dev/null +++ b/.github/workflows/test.yml @@ -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