40 lines
830 B
YAML
40 lines
830 B
YAML
name: Rust
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Build
|
|
run: cargo build --verbose
|
|
|
|
# The github ubuntu-latest is now on linux 5.11 kernel,
|
|
# so we can test the crate with support for each of the
|
|
# kernel featuresets:
|
|
|
|
- name: Run tests (Linux 4.11 support)
|
|
run: cargo test --verbose
|
|
- name: Run tests (Linux 4.14 support)
|
|
run: cargo test --verbose --features linux4_14
|
|
- name: Run tests (Linux 5.7 support)
|
|
run: cargo test --verbose --features linux5_7
|
|
|
|
audit:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install Cargo Audit
|
|
run: cargo install cargo-audit
|
|
- name: Audit
|
|
run: cargo audit
|