on:
push:
branches:
pull_request:
name: CI
jobs:
check:
name: Cargo check
runs-on: ubuntu-latest
strategy:
matrix:
TARGET:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.TARGET }}
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.TARGET }}
- run: cargo check --target ${{ matrix.TARGET }}