-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (33 loc) · 965 Bytes
/
main.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
name: main
on:
push:
branches: [main]
pull_request:
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
rust: [ stable, nightly ]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install Rust
run: |
rustup update ${{ matrix.rust }} --no-self-update
rustup default ${{ matrix.rust }}
rustup component add rustfmt
rustup component add clippy
- name: Install dependencies on Ubuntu
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt install libasound2-dev libxcursor-dev libudev-dev
- run: cargo fmt --check
- run: cargo clippy --workspace --examples --tests --benches
- run: cargo build --verbose
- run: cargo build --verbose --examples
- run: cargo test --release --verbose