Skip to content

CI

CI #507

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 0 * * *'
jobs:
ci:
runs-on: ${{ matrix.host }}
strategy:
matrix:
rust:
- stable
- beta
- nightly
host:
- 'ubuntu-latest'
- 'windows-latest'
- 'macos-latest'
steps:
- name: 'Checkout Code'
uses: actions/checkout@v4
- name: 'Setup Rust Toolchain'
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
components: rustfmt, clippy
- name: 'Build'
run: cargo build --release --all-features
- name: 'Test'
run: cargo test -- --test-threads=1 # Needed for now due to use of env vars
- name: 'Format Check'
run: cargo fmt --all -- --check
- name: 'Clippy Check'
run: cargo clippy -- -D warnings