Skip to content

Update rust.yml to use the Permissions system #21

Update rust.yml to use the Permissions system

Update rust.yml to use the Permissions system #21

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: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose