Add rust toolchain to cache key
All checks were successful
Continuous integration / Build and test (push) Successful in 36s

This commit is contained in:
GHOSCHT 2024-12-21 14:21:08 +01:00
parent db797623ea
commit 6d210f6fbd
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82
2 changed files with 4 additions and 3 deletions

View file

@ -12,6 +12,7 @@ jobs:
- name: Repo checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
id: toolchain
uses: https://github.com/dtolnay/rust-toolchain@1.76.0
- name: Cache Cargo dependencies
uses: actions/cache@v4
@ -22,8 +23,8 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-toolchain-${{ steps.toolchain.outputs.cachekey }}
- name: Build
run: cargo build --all-features
- name: Test
run: cargo test --all-features
run: cargo test --all-features

View file

@ -1,5 +1,5 @@
# picoKontroller
[![ci/cd](https://git.ghoscht.com/ghoscht/picoKontroller/badges/workflows/build.yml/badge.svg?style=for-the-badge)](https://git.ghoscht.com/ghoscht/picoKontroller/actions?workflow=build.yml)
[![ci/cd](https://git.ghoscht.com/ghoscht/picoKontroller/badges/workflows/ci.yml/badge.svg?style=for-the-badge)](https://git.ghoscht.com/ghoscht/picoKontroller/actions?workflow=ci.yml)
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg?style=for-the-badge)](https://www.gnu.org/licenses/gpl-3.0)
[![built with nix](https://builtwithnix.org/badge.svg)](https://builtwithnix.org)