CI #66
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
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 | |
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 |