Update README.md #1
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: Build and Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
start: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
name: Start `cargo build / test` on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
env: | |
CARGO_TERM_COLOR: always | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Rust Toolchain | |
run: rustup toolchain install stable --profile minimal | |
- name: Set up Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
prefix-key: v0-rust | |
shared-key: kfuz2 | |
cache-targets: true | |
cache-all-crates: true | |
- name: Build Release | |
run: cargo build --release | |
- name: Run CLI Tests | |
run: cargo test |