Skip to content

Commit

Permalink
Add workflow for unexpected cfg condition
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane committed Apr 29, 2024
1 parent a8cd1f7 commit 0a193cf
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/features.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: cfg-check

on:
pull_request:
merge_group:
push:
branches: [main]

env:
CARGO_TERM_COLOR: always

jobs:
cfg-check:
name: cfg-check
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- run: cargo +nightly -Zcheck-cfg c
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,11 @@ test:
make test-doc && \
make test-other-targets

cfg-check:
cargo +nightly -Zcheck-cfg c

pr:
make fmt && \
make cfg-check && \
make lint && \
make docs && \
make test

0 comments on commit 0a193cf

Please sign in to comment.