CI #277
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: | |
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@v3 | |
- 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 |