mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(ci): add cfg check (#7965)
Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com>
This commit is contained in:
14
.github/workflows/lint.yml
vendored
14
.github/workflows/lint.yml
vendored
@ -126,11 +126,23 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
cmd: jq empty etc/grafana/dashboards/overview.json
|
cmd: jq empty etc/grafana/dashboards/overview.json
|
||||||
|
|
||||||
|
check-cfg:
|
||||||
|
name: check-cfg
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 30
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
cache-on-failure: true
|
||||||
|
- run: cargo +nightly -Zcheck-cfg c
|
||||||
|
|
||||||
lint-success:
|
lint-success:
|
||||||
name: lint success
|
name: lint success
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: always()
|
if: always()
|
||||||
needs: [clippy-binaries, clippy, crate-checks, docs, fmt, codespell, grafana]
|
needs: [clippy-binaries, clippy, crate-checks, docs, fmt, codespell, grafana, check-cfg]
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- name: Decide whether the needed jobs succeeded or failed
|
- name: Decide whether the needed jobs succeeded or failed
|
||||||
|
|||||||
Reference in New Issue
Block a user