1name: Rust 2 3on: 4 push: 5 branches: [ main ] 6 pull_request: 7 branches: [ main ] 8 9jobs: 10 build: 11 12 runs-on: ubuntu-latest 13 14 steps: 15 - uses: actions/checkout@v2 16 - name: Build 17 run: cargo build --verbose 18 19 # The github ubuntu-latest is now on linux 5.11 kernel, 20 # so we can test the crate with support for each of the 21 # kernel featuresets: 22 23 - name: Run tests (Linux 4.11 support) 24 run: cargo test --verbose 25 - name: Run tests (Linux 4.14 support) 26 run: cargo test --verbose --features linux4_14 27 - name: Run tests (Linux 5.7 support) 28 run: cargo test --verbose --features linux5_7 29 30 audit: 31 32 runs-on: ubuntu-latest 33 34 steps: 35 - uses: actions/checkout@v2 36 - name: Install Cargo Audit 37 run: cargo install cargo-audit 38 - name: Audit 39 run: cargo audit 40