From 20e2ce773d57650b89ac4a9c3f099d2acc7812e7 Mon Sep 17 00:00:00 2001 From: JamesWrigley Date: Thu, 12 Dec 2024 12:42:01 +0100 Subject: [PATCH] Use julia-actions/cache in CI The advantage is that the whole depot will be cached instead of just the artifacts. Also deleted the build step since Distributed doesn't have a build.jl file. --- .github/workflows/ci.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8af46f4..ed6b2fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,7 @@ concurrency: # Cancel intermediate builds: only pull request builds group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-') || github.run_number }} cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} @@ -39,17 +40,7 @@ jobs: with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - 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-${{ matrix.os }} - ${{ runner.os }}- - - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/cache@v2 - uses: julia-actions/julia-runtest@v1 env: JULIA_DISTRIBUTED_TESTING_STANDALONE: 1 @@ -58,6 +49,7 @@ jobs: with: files: lcov.info token: ${{ secrets.CODECOV_TOKEN }} + docs: runs-on: ubuntu-latest steps: