diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a0727cabd..ca49f1a3c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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