From 10f70e35a0a75346ac3709a67c6252cca960c6c0 Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Mon, 9 Oct 2023 12:54:29 +0200 Subject: [PATCH] bump CI, use cache action --- .github/workflows/ci.yml | 13 ++----------- .github/workflows/docs.yml | 3 ++- .github/workflows/pr-format.yml | 2 +- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9678d4a..596b7a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,21 +24,12 @@ jobs: arch: - x64 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v1 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - uses: actions/cache@v1 - 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/cache@v1 - uses: julia-actions/julia-buildpkg@latest - run: | git config --global user.name Tester diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 363aaf4..4d44f4a 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -14,8 +14,9 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@latest + - uses: julia-actions/cache@v1 - name: Install dependencies run: julia --color=yes --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' - name: Build and deploy diff --git a/.github/workflows/pr-format.yml b/.github/workflows/pr-format.yml index 5d8b94a..e9bad51 100644 --- a/.github/workflows/pr-format.yml +++ b/.github/workflows/pr-format.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Clone the repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Checkout the pull request code # this checks out the actual branch so that one can commit into it if: github.event_name == 'issue_comment' env: