name: CI
on:
workflow_call:
push:
branches:
pull_request:
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
jobs:
local-check:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Free disk space
run: |
df -h
sudo rm -rf /usr/share/dotnet /opt/ghc /opt/hostedtoolcache/CodeQL
df -h
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.91.1
components: clippy,rustfmt
- uses: Swatinem/rust-cache@v2
- run: ./ci/local_check.sh