Skip to content

Commit

Permalink
ci: cache compiled dprint plugins (#6605)
Browse files Browse the repository at this point in the history
Cache downloaded & compiled `dprint` plugins in `autofix.ci` between
runs. It should help shave some time off this pipeline.
  • Loading branch information
DonIsaac authored Oct 15, 2024
1 parent 03427af commit a00b437
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,19 @@ jobs:
restore-cache: false
tools: just,cargo-shear@1,dprint
components: rustfmt
- name: Restore dprint plugin cache
id: cache-restore
uses: actions/cache/restore@v4
with:
key: dprint-autofix-ci-${{ runner.os }}-${{ hashFiles('dprint.json') }}
path: ~/.cache/dprint
- run: just fmt
- uses: autofix-ci/action@v1.3.1
with:
fail-fast: false
- name: Save dprint plugin cache
id: cache-save
uses: actions/cache/save@v4
with:
key: ${{ steps.cache-restore.outputs.cache-primary-key }}
path: ~/.cache/dprint

0 comments on commit a00b437

Please sign in to comment.