derive: use syn@2 #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
schedule: | |
- cron: 00 4 * * * | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
rust: | |
- 1.46.0 | |
- stable | |
- beta | |
- nightly | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
components: clippy,rustfmt | |
toolchain: ${{ matrix.rust }} | |
- uses: Swatinem/rust-cache@v2 | |
- uses: taiki-e/install-action@v2 | |
with: | |
tool: cargo-hack,taplo-cli | |
- run: taplo fmt --check | |
- run: cargo fmt --all -- --check | |
# `cargo fmt` at MSRV is too old to read some dependencies' manifests. | |
if: matrix.rust != '1.46.0' | |
- run: cargo hack clippy --all-targets --feature-powerset --workspace -- --deny warnings --allow dead_code # TODO: remove? | |
# `cargo fmt` at MSRV is too old to read some dependencies' manifests. | |
if: matrix.rust != '1.46.0' | |
- run: cargo hack test --all-targets --feature-powerset --workspace | |
# `cargo fmt` at MSRV is too old to read some dependencies' manifests. | |
if: matrix.rust != '1.46.0' | |
- run: cargo test --no-default-features | |
if: matrix.rust == '1.46.0' | |
- run: cargo test --all-features | |
if: matrix.rust == '1.46.0' |