Files
third_party_rust_linux-raw-sys/.github/workflows/main.yml
T
Dan Gohman 3673970e70 Simplify the bindings by using only a single kernel version. (#20)
Originally, the idea of having multiple versions was to attempt to
support writing code that was strictly compatible with old versions.
However, my experience with linux-raw-sys so far as been that that's
not as useful as it seemed like it would be, and versioning all the
imports means having multiple versions of all the types, which gets
awkward.

So instead, switch to having just a single Linux version, 5.11 for
now, which is mostly a superset of the other versions.

This also helps reduce compile times, as there aren't multiple
versions of everything to parse.
2022-01-27 07:43:31 -08:00

40 lines
888 B
YAML

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
check:
name: Check
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, beta, nightly]
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v2
- run: |
rustup set profile minimal
rustup install ${{ matrix.rust }}
rustup default ${{ matrix.rust }}
cargo check --features "netlink"
cargo check --no-default-features --features "std netlink"
cargo check --no-default-features --features "no_std netlink"
cargo check --no-default-features --features "no_std general errno"
gen:
name: Update generated files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
sudo apt install libclang-dev
cd gen && cargo run --release
git diff --exit-code