GHOSCHT
ba071475a0
All checks were successful
Continuous integration / Build and test (push) Successful in 1m1s
29 lines
928 B
YAML
29 lines
928 B
YAML
on: [push, pull_request]
|
|
|
|
name: Continuous integration
|
|
|
|
jobs:
|
|
build_and_test:
|
|
name: Build and test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install APT dependencies
|
|
run: apt update && apt install libasound2-dev libdbus-1-dev libpulse0 -y
|
|
- name: Repo checkout
|
|
uses: actions/checkout@v4
|
|
- name: Install Rust toolchain
|
|
uses: https://github.com/dtolnay/rust-toolchain@1.76.0
|
|
- 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') }}-toolchain-${{ steps.toolchain.outputs.cachekey }}
|
|
- name: Build
|
|
run: cargo build --all-features
|
|
- name: Test
|
|
run: cargo test --all-features
|