Skip to content

Commit

Permalink
caching
Browse files Browse the repository at this point in the history
  • Loading branch information
LasseHels committed Nov 2, 2024
1 parent d5344ff commit f5b6e77
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
on:
workflow_call:

env:
RUST_VERSION: '1.82.0'

jobs:
test:
name: Test
Expand All @@ -10,7 +13,19 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@v1
# https://github.com/actions-rs/toolchain/issues/54#issuecomment-1452937296.
- id: cache-rustup
name: Cache Rust toolchain
uses: actions/cache@v4
with:
path: |
~/.rustup
~/.cargo
key: toolchain-${{ env.RUST_VERSION }}
- if: ${{ steps.cache-rustup.outputs.cache-hit != 'true' }}
name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: '1.82.0'
- name: Test
run: make test

0 comments on commit f5b6e77

Please sign in to comment.