Testing macos and windows runners #52
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: CI Build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, macos-14] | |
steps: | |
- name: Cache git folder | |
uses: actions/cache@v4 | |
with: | |
path: .git | |
key: git-repository-key | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
lfs: true | |
- name: Install Rust | |
run: rustup toolchain install stable --profile minimal | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run formatter | |
run: cargo fmt --check | |
if: matrix.os == 'ubuntu-latest' | |
- name: Run clippy | |
run: bash scripts/ci/clippy.bash | |
- name: Run tests | |
run: cargo test --release |