diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 51d560a..013235f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,6 +9,12 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Parse MSRV + run: sed -n 's/^rust-version = "\(.*\)"$/RUSTUP_TOOLCHAIN=\1/p' Cargo.toml >> $GITHUB_ENV + - name: Install Rust Toolchain + run: rustup toolchain install $RUSTUP_TOOLCHAIN + - name: Install Clippy and Rustfmt + run: rustup component add clippy rustfmt - name: Run hooks run: | base=$(git rev-parse "origin/${{ github.base_ref }}")