Skip to content

Update rust.yml to use caching #22

Update rust.yml to use caching

Update rust.yml to use caching #22

Workflow file for this run

name: Rust
permissions:
contents: read
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install system dependencies
run: sudo apt-get install -y libasound2-dev libudev-dev
- name: Cache build artifacts
uses: actions/[email protected]
with:
path: |
key: "Rust build cache"
**/target
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose