From 17cd2eda79d457d9b9fe260a8be2794c706ace6b Mon Sep 17 00:00:00 2001 From: plotchy <98172525+plotchy@users.noreply.github.com> Date: Wed, 26 Jun 2024 15:18:22 -0400 Subject: [PATCH 1/2] Update rust.yml --- .github/workflows/rust.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c5ad9ab2..de74fe3d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -15,7 +15,15 @@ jobs: steps: - uses: actions/checkout@v3 + + # Install Rust toolchain + - name: Install Rust toolchain + run: rustup toolchain install nightly + + # 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 From 185e5942f4defc7b17668fbb8849d224c95b5924 Mon Sep 17 00:00:00 2001 From: plotchy <98172525+plotchy@users.noreply.github.com> Date: Wed, 26 Jun 2024 15:20:10 -0400 Subject: [PATCH 2/2] Update rust.yml --- .github/workflows/rust.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index de74fe3d..0704f115 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -19,6 +19,10 @@ jobs: # 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