mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-24 21:08:38 +00:00
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:
parent
b816843f33
commit
7227a4ecc5
19
.github/workflows/test.yml
vendored
19
.github/workflows/test.yml
vendored
@ -23,18 +23,17 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
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
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" V=1 update
|
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" V=1 update
|
||||||
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" LOG_LEVEL=TRACE
|
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
|
- name: Run Tests
|
||||||
run: |
|
run: |
|
||||||
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" test
|
make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" test
|
||||||
@ -59,6 +58,12 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
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
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% CI_CACHE=NimBinaries update
|
mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% CI_CACHE=NimBinaries update
|
||||||
|
Loading…
x
Reference in New Issue
Block a user