Skip to content

chore: release

chore: release #960

Workflow file for this run

name: Main workflow
on:
push:
branches: [ "main" ]
pull_request:
env:
CARGO_TERM_COLOR: always
permissions:
contents: read
jobs:
fmt:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all --check
feature-checks-msrv:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable # correct version will be downloaded by cargo hack
- uses: taiki-e/install-action@cargo-hack
- name: cargo hack
run: |
cargo hack --rust-version -p lintspec-core check --feature-powerset
cargo hack --rust-version -p lintspec check --feature-powerset --at-least-one-of solar,slang
clippy:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- run: cargo clippy --all-targets --all-features
env:
RUSTFLAGS: -Dwarnings
build-test:
strategy:
matrix:
platform: [ ubuntu-latest, windows-latest, macos-latest ]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@nextest
- uses: taiki-e/install-action@cargo-hack
- name: Run tests
run: |
cargo hack -p lintspec-core nextest run --feature-powerset
cargo nextest run -p lintspec-macros
doctests:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- run: cargo test --doc
docs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- run: cargo +nightly doc --all-features --no-deps --document-private-items
env:
RUSTDOCFLAGS: "--cfg docsrs -D warnings"
deny:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@cargo-deny
- run: cargo deny check all