ruwuma/.github/workflows/nightly.yml
Kévin Commaille 6f7bb9aa1d ci: Check that all features that are used exist
With the new `check-cfg=features` option
2022-05-24 15:28:43 +02:00

56 lines
1.1 KiB
YAML

name: Rust Nightly
env:
CARGO_TERM_COLOR: always
on:
push:
branches: [main, next]
pull_request:
branches: [main, next]
jobs:
check:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: Check Formatting
cmd: fmt
components: rustfmt
- name: Full Features
cmd: nightly-full
- name: All Features
cmd: nightly-all
- name: Clippy Default Features
cmd: clippy-default
components: clippy
- name: Clippy All Features
cmd: clippy-all
components: clippy
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: ${{ matrix.components }}
- uses: Swatinem/rust-cache@v1
- name: Run checks
uses: actions-rs/cargo@v1
with:
command: run
args: -p xtask --no-default-features ci ${{ matrix.cmd }}