fix/github-actions-cache (#69)

* better cache

* rename

* test cache

Signed-off-by: decanus <7621705+decanus@users.noreply.github.com>

* fix

* windows cache

* rename
This commit is contained in:
Dean Eigenmann 2020-07-22 12:48:53 +02:00 committed by GitHub
parent b816843f33
commit 7227a4ecc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 7 deletions

View File

@ -23,18 +23,17 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Cache nim
uses: actions/cache@v1
with:
path: vendor/nimbus-build-system/vendor/Nim/bin
key: ${{ runner.os }}-${{ matrix.env.NPROC }}-nim-${{ hashFiles('.gitmodules') }}
- 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-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
@ -59,6 +58,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Cache nim
uses: actions/cache@v1
with:
path: vendor/nimbus-build-system/vendor/Nim/bin
key: ${{ runner.os }}-${{ matrix.env.NPROC }}-nim-${{ hashFiles('.gitmodules') }}
- name: Build
run: |
mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% CI_CACHE=NimBinaries update