Merge pull request #20 from aosoft/aosoft/fix-ci #5
This file contains hidden or 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: | |
| pull_request: | |
| push: | |
| branches: [master] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUSTFLAGS: -D warnings | |
| jobs: | |
| test: | |
| name: ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Update Rust toolchain | |
| run: rustup update stable && rustup default stable && rustup component add clippy | |
| - name: Clippy | |
| run: cargo clippy --workspace --all-targets | |
| - name: Build | |
| run: cargo build --workspace --all-targets | |
| - name: Test | |
| run: cargo test --workspace |