Skip to content

Commit

Permalink
Add rust cache to github action.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivorforce committed Jul 16, 2024
1 parent 192a4f6 commit be127eb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: Rust Tests

on:
push:
Expand All @@ -16,6 +16,11 @@ jobs:

steps:
- uses: actions/checkout@v3
- run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "main"
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Build
run: cargo build --verbose
- name: Run tests
Expand Down

0 comments on commit be127eb

Please sign in to comment.