chore: Switch to rust-toolchain.toml

Signed-off-by: Xuanwo <github@xuanwo.io>
This commit is contained in:
Xuanwo
2024-07-22 18:49:21 +08:00
committed by Herrington Darkholme
parent b11fc3fb23
commit 537599c265
4 changed files with 4 additions and 7 deletions
-4
View File
@@ -36,10 +36,6 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
components: rustfmt, clippy
- name: Cache
uses: actions/cache@v4
with:
-1
View File
@@ -40,7 +40,6 @@ jobs:
args: --out dist
- name: "Test sdist"
run: |
rustup default $(cat rust-toolchain)
pip install dist/${{ env.PACKAGE_NAME }}-*.tar.gz --force-reinstall
sg --help
- name: "Upload sdist"
-1
View File
@@ -1 +0,0 @@
stable
+3
View File
@@ -0,0 +1,3 @@
[toolchain]
channel = "stable"
components = ["rustfmt", "clippy"]