Skip to content

Commit 281180c

Browse files
authored
Add minimal workflow (#2483)
This workflow runs `cargo check` for the `bindgen` crate without its default features (except for the `runtime` feature) and denies any warnings that occur. This would help us catch any build warnings that happen when building `bindgen` without the CLI and experimental features disabled.
1 parent be2f59c commit 281180c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/bindgen.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,23 @@ jobs:
5454
- name: Build with msrv
5555
run: rm Cargo.lock && cargo +1.60.0 build --lib
5656

57+
minimal:
58+
runs-on: ubuntu-latest
59+
env:
60+
RUSTFLAGS: -D warnings
61+
steps:
62+
- uses: actions/checkout@v3
63+
64+
- name: Install stable
65+
uses: actions-rs/toolchain@v1
66+
with:
67+
profile: minimal
68+
toolchain: stable
69+
override: true
70+
71+
- name: Check without default features
72+
run: cargo check -p bindgen --no-default-features --features=runtime
73+
5774
quickchecking:
5875
runs-on: ubuntu-latest
5976
steps:

0 commit comments

Comments
 (0)