Debian Codegraph @

third_party/rust/cubeb-pulse/.github/workflows/build.yml

raw
1 name: Build
2
3 on: [push, pull_request]
4
5 jobs:
6 build:
7 runs-on: ubuntu-20.04
8 continue-on-error: ${{ matrix.experimental }}
9 strategy:
10 fail-fast: false
11 matrix:
12 rust: [stable]
13 experimental: [false]
14 include:
15 - rust: nightly
16 experimental: true
17
18 steps:
19 - uses: actions/checkout@v2
20 with:
21 submodules: recursive
22
23 - name: Install Rust
24 run: rustup toolchain install ${{ matrix.rust }} --profile minimal --component rustfmt clippy
25
26 - name: Install Dependencies (Linux)
27 run: sudo apt-get update && sudo apt-get install libpulse-dev
28
29 - name: Check format
30 shell: bash
31 run: rustup run ${{ matrix.rust }} cargo fmt --all -- --check
32
33 - name: Clippy
34 shell: bash
35 run: rustup run ${{ matrix.rust }} cargo clippy --all -- -D warnings
36
37 - name: Build
38 shell: bash
39 run: rustup run ${{ matrix.rust }} cargo build --all
40
41 - name: Test
42 shell: bash
43 run: rustup run ${{ matrix.rust }} cargo test --all
44