Skip to content

Commit

Permalink
use rust-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbe7a authored Jun 3, 2024
1 parent c10a1d3 commit d37e4bb
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,9 @@ jobs:
uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659
with:
environments: default lint
- name: Set up cargo cache # use https://github.com/Swatinem/rust-cache once whitelisted
uses: actions/cache@v3
continue-on-error: false
- uses: Swatinem/rust-cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-lint-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
key: "pre-commit"
- name: pre-commit
run: pixi run pre-commit-run --color=always --show-diff-on-failure

Expand All @@ -48,17 +39,8 @@ jobs:
fetch-depth: 0
- name: Set up pixi
uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659
- name: Set up cargo cache # use https://github.com/Swatinem/rust-cache once whitelisted
uses: actions/cache@v3
continue-on-error: false
- uses: Swatinem/rust-cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
key: "tests"
- name: Run test
run: pixi run test

0 comments on commit d37e4bb

Please sign in to comment.