From 05e381b62b85514ee54d6c248fab78091d27b96b Mon Sep 17 00:00:00 2001 From: plotchy <98172525+plotchy@users.noreply.github.com> Date: Wed, 26 Jun 2024 15:23:31 -0400 Subject: [PATCH] nightly CI fix (#82) * Update rust.yml * Update rust.yml --- .github/workflows/rust.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c5ad9ab2..0704f115 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -15,7 +15,19 @@ jobs: steps: - uses: actions/checkout@v3 + + # Install Rust toolchain + - name: Install Rust toolchain + run: rustup toolchain install nightly + + # Install rustfmt component for nightly toolchain + - name: Install rustfmt for nightly + run: rustup component add --toolchain nightly rustfmt + + # Lint with fmt using nightly toolchain - name: Lint with fmt run: cargo +nightly fmt --all --check + + # Run tests - name: Run tests run: cargo test --all