Skip to content

Commit

Permalink
ci: enable caching of Julia depots for all workflows
Browse files Browse the repository at this point in the history
This should speed up workflow runs (at least on subsequent builds for
the same PR/branch) and is recommended by the `julia-buildpkg`
action[^1].

[^1]: https://github.com/bauglir/Kroki.jl/actions/runs/8798251759
  • Loading branch information
bauglir committed Apr 23, 2024
1 parent eb747f9 commit 1a7692b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Expand Up @@ -32,6 +32,7 @@ jobs:
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/CodeFormattingCheck.yml
Expand Up @@ -11,11 +11,11 @@ jobs:
code-format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1.10'

- uses: actions/checkout@v4
- uses: julia-actions/cache@v1
- name: Install JuliaFormatter and format
run: |
julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter", version="1.0.53"))'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/CompatHelper.yml
Expand Up @@ -12,6 +12,7 @@ jobs:
- uses: julia-actions/setup-julia@v2
with:
version: '1.10'
- uses: julia-actions/cache@v1
- name: Install CompatHelper
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: Update Dependencies
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/Documentation.yml
Expand Up @@ -18,6 +18,7 @@ jobs:
- uses: julia-actions/setup-julia@v2
with:
version: '1.10'
- uses: julia-actions/cache@v1
- name: Install dependencies
run: |
julia --project=docs -e '
Expand Down

0 comments on commit 1a7692b

Please sign in to comment.