Updated dependencies versions. #79
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: Check and Test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: { } | |
env: | |
CARGO_TERM_COLOR: always | |
DONT_SAVE_RESULT: 1 | |
RAYON_NUM_THREADS: 4 | |
jobs: | |
run_tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, macos-latest, windows-latest ] | |
name: Test `cargo check/test` on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
cache-on-failure: "true" | |
- name: Run single-thread tests | |
run: | | |
cargo check | |
cargo test | |
- name: Run multi-thread tests | |
run: | | |
cargo check --features rayon | |
cargo test --features rayon |