From a3d050fc18f156c206ef90e3388ac95cc6f872aa Mon Sep 17 00:00:00 2001 From: Jaremy Creechley Date: Tue, 11 Jul 2023 17:37:34 -0700 Subject: [PATCH] caching --- .github/workflows/ci-nimbus.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci-nimbus.yml b/.github/workflows/ci-nimbus.yml index e6a93c5..b92a01c 100644 --- a/.github/workflows/ci-nimbus.yml +++ b/.github/workflows/ci-nimbus.yml @@ -146,20 +146,20 @@ jobs: nim-version: 1.6.14 repo-token: ${{ secrets.GITHUB_TOKEN }} - # - name: Restore Nim toolchain binaries from cache - # id: nim-cache - # uses: actions/cache@v3 - # with: - # path: NimBinaries - # key: ${{ matrix.target.os }}-${{ matrix.target.cpu }}-nim-${{ matrix.branch }}-cache-${{ env.cache_nonce }}-${{ github.run_id }} - # restore-keys: ${{ matrix.target.os }}-${{ matrix.target.cpu }}-nim-${{ matrix.branch }}-cache-${{ env.cache_nonce }} + - name: Restore Nim toolchain binaries from cache + id: nim-cache + uses: actions/cache@v3 + with: + path: NimBinaries + key: ${{ matrix.target.os }}-${{ matrix.target.cpu }}-nim-${{ hashFiles('atlas.lock') }} - # - name: Set NIM_COMMIT - # shell: ${{ matrix.shell }} {0} - # run: echo "NIM_COMMIT=${{ matrix.branch }}" >> ${GITHUB_ENV} + - name: Restore Vendor Clones from cache + id: nim-cache + uses: actions/cache@v3 + with: + path: vendor/*/ + key: ${{ matrix.target.os }}-${{ matrix.target.cpu }}-vendor-${{ hashFiles('atlas.lock') }} - - name: Run tests - run: | - name: Run tests run: | if [[ "${{ matrix.target.os }}" == "windows" ]]; then