name: Build and test
on:
jobs:
linux:
name: Build & Test Linux
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install latests rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
# selecting a toolchain either by action or manual `rustup` calls should happen
# before the plugin, as the cache uses the current rustc version as its cache key
- name: Rust build cache
uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build
- name: Test
run: cargo test