Skip to content

Commit

Permalink
Check for unknown features
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion committed Jan 15, 2023
1 parent 6604e2b commit 6071eb2
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/features.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Check for unknown features
on:
push:
branches: ["main"]
pull_request:
jobs:
unknown-features:
name: Check for unknown features
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Fetch toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
- name: Check for unknown features
env:
RUSTFLAGS: "-D unexpected-cfgs"
uses: actions-rs/cargo@v1
with:
command: check
args: -Z unstable-options -Z check-cfg=features --tests
toolchain: nightly

0 comments on commit 6071eb2

Please sign in to comment.