From c289fb12392881a83da74486211fe9e9ef216d7e Mon Sep 17 00:00:00 2001 From: Alexander Demin <60229118+sumiya11@users.noreply.github.com> Date: Sat, 27 Jan 2024 17:45:00 +0300 Subject: [PATCH] Add caching for CI --- .github/workflows/Runtests.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Runtests.yml b/.github/workflows/Runtests.yml index a8cc1175..7ae413f4 100644 --- a/.github/workflows/Runtests.yml +++ b/.github/workflows/Runtests.yml @@ -1,5 +1,5 @@ name: Runtests -on: [push, pull_request] +on: [push, pull_request] jobs: test: runs-on: ${{ matrix.os }} @@ -13,6 +13,16 @@ jobs: - uses: julia-actions/setup-julia@latest with: version: ${{ matrix.julia-version }} + - uses: actions/cache@v4 + env: + cache-name: cache-artifacts + with: + path: ~/.julia/artifacts + key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} + restore-keys: | + ${{ runner.os }}-test-${{ env.cache-name }}- + ${{ runner.os }}-test- + ${{ runner.os }}- - uses: julia-actions/julia-buildpkg@latest - uses: julia-actions/julia-runtest@latest with: @@ -21,4 +31,4 @@ jobs: - uses: codecov/codecov-action@v3 with: file: lcov.info - \ No newline at end of file +