picoKontroller/.forgejo/workflows/build.yml

27 lines
812 B
YAML
Raw Normal View History

on: [push, pull_request]
name: Continuous integration
jobs:
build_and_test:
name: Build and test
runs-on: ubuntu-latest
steps:
2024-12-21 12:32:43 +01:00
- name: Install APT dependencies
run: apt update && apt install libasound2-dev libdbus-1-dev libpulse0 -y
- uses: actions/checkout@v4
- uses: https://github.com/dtolnay/rust-toolchain@stable
2024-12-21 12:32:43 +01:00
- name: Cache Cargo dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build
run: cargo build --all-features
- name: Test
run: cargo test --all-features