-
Notifications
You must be signed in to change notification settings - Fork 11
39 lines (30 loc) · 1.03 KB
/
rust.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust: [stable, nightly]
os: [ubuntu-20.04, windows-2019, macos-10.15]
type: [Release, Debug]
steps:
- uses: actions/checkout@v2
- name: Install Rust
run: rustup toolchain install ${{ matrix.rust }} --profile minimal --component rustfmt clippy
- name: Install Dependencies (Linux)
run: sudo apt-get update && sudo apt-get install libpulse-dev pulseaudio libdbus-1-dev
if: matrix.os == 'ubuntu-20.04'
- name: Check format
shell: bash
run: rustup run ${{ matrix.rust }} cargo fmt -- --check
- name: Clippy
shell: bash
run: rustup run ${{ matrix.rust }} cargo clippy -- -D warnings
- name: Build
shell: bash
run: rustup run ${{ matrix.rust }} cargo build --all
- name: Test
shell: bash
run: rustup run ${{ matrix.rust }} cargo test --all
if: matrix.os != 'ubuntu-20.04' # setrlimit64 error in the CI container