Skip to content

Add self setup command #1

Add self setup command

Add self setup command #1

Workflow file for this run

name: Test
on:
pull_request:
push:
branches:
- main
jobs:
test:
strategy:
fail-fast: false
matrix:
include:
- test: windows-x64
os: windows-latest
target: x86_64-pc-windows-msvc
- test: linux-x64
os: ubuntu-latest
target: x86_64-unknown-linux-gnu
name: Test (${{ matrix.test }})
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Build
run: cargo build --verbose --locked
- name: Test
run: cargo test --verbose --locked
format:
name: Check formatting
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Check formatting
run: cargo fmt --verbose --check
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Lint
run: cargo clippy