From ae5d988478975c2b008c081dc7bd4cb35b7983a1 Mon Sep 17 00:00:00 2001
From: billow <billow.fun@gmail.com>
Date: Fri, 10 May 2024 12:48:50 +0800
Subject: [PATCH] Try to fix rust workflow

---
 .github/workflows/rust.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 6661a03..a3c7648 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -33,7 +33,10 @@ jobs:
         pip install meson ninja PyYAML
         meson setup --debug --buildtype=release --prefix=$(realpath $HOME/.local) build
         ninja install -C build
-    - run: rustup toolchain install nightly --profile minimal
+    - name: Setup Rust nightly
+      run: |
+        rustup toolchain install nightly --profile minimal
+        rustup default nightly
     - uses: actions/checkout@v4
     - uses: Swatinem/rust-cache@v2
     - name: Build