From eba316e22df5418474900639307b82f7600bdf02 Mon Sep 17 00:00:00 2001 From: Fernando Chorney Date: Mon, 18 Jan 2021 13:21:53 -0600 Subject: [PATCH] Automatically fix CI tests and cache steps --- .github/workflows/CI.yml | 9 +++++---- .github/workflows/JuliaNightly.yml | 10 ++++------ 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index b5e422b5..647b9513 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -41,15 +41,16 @@ jobs: with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - uses: actions/cache@v1 + - uses: actions/cache@v2 env: cache-name: cache-artifacts with: path: ~/.julia/artifacts - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} + key: ${{ runner.os }}-${{ matrix.arch }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} restore-keys: | - ${{ runner.os }}-test-${{ env.cache-name }}- - ${{ runner.os }}-test- + ${{ runner.os }}-${{ matrix.arch }}-test-${{ env.cache-name }}- + ${{ runner.os }}-${{ matrix.arch }}-test- + ${{ runner.os }}-${{ matrix.arch }}- ${{ runner.os }}- - uses: julia-actions/julia-buildpkg@latest - uses: julia-actions/julia-runtest@latest diff --git a/.github/workflows/JuliaNightly.yml b/.github/workflows/JuliaNightly.yml index d3c82505..351eec91 100644 --- a/.github/workflows/JuliaNightly.yml +++ b/.github/workflows/JuliaNightly.yml @@ -13,16 +13,14 @@ jobs: with: version: nightly arch: x64 - - uses: actions/cache@v1 + - uses: actions/cache@v2 env: - cache-name: cache-artifacts + cache-name: julia-nightly-cache-artifacts with: path: ~/.julia/artifacts - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} + key: ${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} restore-keys: | - ${{ runner.os }}-test-${{ env.cache-name }}- - ${{ runner.os }}-test- - ${{ runner.os }}- + ${{ env.cache-name }}- - uses: julia-actions/julia-buildpkg@latest - uses: julia-actions/julia-runtest@latest - uses: julia-actions/julia-processcoverage@v1