build system
This commit is contained in:
30
.github/workflows/build.yml
vendored
Normal file
30
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
name: Build
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "main"
|
||||||
|
paths-ignore:
|
||||||
|
- "/docs"
|
||||||
|
- "README.md"
|
||||||
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- "/docs"
|
||||||
|
- "README.md"
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: "Checkout"
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: "Cache"
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
- name: "External dependencies"
|
||||||
|
run: sudo apt-get install -y libasound2-dev portaudio19-dev build-essential libpulse-dev libdbus-1-dev libudev-dev
|
||||||
|
- name: "Checks"
|
||||||
|
run: |
|
||||||
|
cargo fmt --check
|
||||||
|
cargo clippy --no-deps --tests -- -D warnings
|
||||||
|
cargo rustdoc -- -D warnings
|
||||||
|
- name: "Test"
|
||||||
|
run: |
|
||||||
|
cargo test --verbose
|
||||||
Reference in New Issue
Block a user