name: CI
on:
push:
branches: ['**']
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.96.1
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
with:
shared-key: host-check
workspaces: . -> target
save-if: ${{ github.ref == 'refs/heads/master' }}
- run: make ci-host
env:
CARGO_TARGET_DIR: ${{ github.workspace }}/target