From 7ec3bb91b72ba249dff6077c1816bb2b4b626ca9 Mon Sep 17 00:00:00 2001
From: Kirill Chibisov <contact@kchibisov.com>
Date: Mon, 2 Sep 2024 14:44:28 +0300
Subject: [PATCH] ci: use winit ci setup

---
 .github/workflows/ci.yml | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 515c125a4e..d24ef46c1c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -18,18 +18,23 @@ jobs:
     name: Check formatting
     runs-on: ubuntu-latest
     steps:
-    - uses: actions/checkout@v3
-    - uses: hecrj/setup-rust-action@v1
+    - uses: taiki-e/checkout-action@v1
+    - uses: dtolnay/rust-toolchain@nightly
       with:
-        rust-version: nightly
         components: rustfmt
     - uses: taiki-e/install-action@v2
       with:
         tool: typos-cli
     - name: Check Formatting
-      run: cargo +nightly fmt --all -- --check
-    - name: Run Typos
+      run: cargo fmt --all -- --check
+    - name: run typos
       run: typos
+    - name: Typos info
+      if: failure()
+      run: |
+        echo 'To fix typos, please run `typos -w`'
+        echo 'To check for a diff, run `typos`'
+        echo 'You can find typos here: https://crates.io/crates/typos'
 
   tests:
     name: Tests