-
Notifications
You must be signed in to change notification settings - Fork 28
30 lines (27 loc) · 809 Bytes
/
Copy pathrust-pr.yml
File metadata and controls
30 lines (27 loc) · 809 Bytes
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
name: Rust PR
on:
pull_request:
branches: [ main ] # run only when making a PR for main
env:
CARGO_TERM_COLOR: always
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Install libudev
run: sudo apt-get update && sudo apt-get install libudev-dev pkg-config librust-alsa-sys-dev
- uses: actions/checkout@v6.0.2
- uses: actions/setup-python@v6.2.0
- uses: pre-commit/action@v3.0.1
build:
runs-on: ubuntu-latest
steps:
- name: Install libudev
run: sudo apt-get update && sudo apt-get install libudev-dev pkg-config librust-alsa-sys-dev
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Build examples
run: cargo build --examples
- name: Run tests
run: cargo test --verbose