Skip to content

CI

CI #118

Workflow file for this run

on:
push:
branches:
- main
pull_request:
branches:
- main
schedule: # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onschedule
- cron: '0 0 * * 0' # at midnight of each sunday
workflow_dispatch:
name: CI
jobs:
cross-test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Rust test
run: |
cargo test
cargo test --release
develop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt, clippy
- name: Rust check
run: |
cargo fmt --all -- --check
cargo clippy --all -- -D warnings
cargo build
cargo build --release