Skip to content

Commit

Permalink
Add back tools cache
Browse files Browse the repository at this point in the history
  • Loading branch information
pnehrer committed Apr 21, 2024
1 parent dc44edf commit b8c7dbe
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,17 @@ jobs:
steps:
- name: Check out the source code
uses: actions/checkout@v4
- name: Cache tools
uses: actions/cache@v4
with:
key: ${{ runner.os }}-${{ hashFiles('Cargo.toml') }}
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Check formatting
Expand All @@ -28,6 +37,15 @@ jobs:
steps:
- name: Check out the source code
uses: actions/checkout@v4
- name: Cache tools
uses: actions/cache@v4
with:
key: ${{ runner.os }}-${{ hashFiles('Cargo.toml') }}
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Build the binary
Expand Down

0 comments on commit b8c7dbe

Please sign in to comment.