Skip to content

Merge branch 'main' into rust-migration #3

Merge branch 'main' into rust-migration

Merge branch 'main' into rust-migration #3

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
branches: [ "main" ]
jobs:
format:
name: Rustfmt
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt
- run: cargo fmt --all --check
clippy:
name: Clippy
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: clippy
- run: cargo clippy --workspace --all-features -- -D warnings
build_and_test_linux:
name: Build and Test (Linux)
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
run: cargo test --all-targets
build_and_test_win:
name: Build and Test (Windows)
runs-on: windows-latest
timeout-minutes: 10
steps:
- name: Prepare symlink configuration
run: git config --global core.symlinks true
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
run: cargo test --all-targets