update dependencies #34
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: [ "main" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Formatting | |
run: cargo fmt -- --check | |
lint: | |
name: Lint | |
needs: [format] | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Rust Cache dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: install NASM for window | |
if: matrix.os == 'windows-latest' | |
uses: ilammy/setup-nasm@v1 | |
- name: Clippy | |
run: cargo clippy --all-features --all-targets -- -D warnings | |
test: | |
name: Test | |
needs: [lint] | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Rust Cache dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Install latest nextest release | |
uses: taiki-e/install-action@nextest | |
- name: install NASM for window | |
if: matrix.os == 'windows-latest' | |
uses: ilammy/setup-nasm@v1 | |
- name: Run tests | |
run: cargo nextest run --config-file ${{ github.workspace }}/.github/nextest.toml --profile ci | |
- name: Run doc tests | |
run: cargo test --doc |