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 uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
components: rustfmt, clippy
- name: Cache - name: Cache
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
+1 -2
View File
@@ -40,7 +40,6 @@ jobs:
args: --out dist args: --out dist
- name: "Test sdist" - name: "Test sdist"
run: | run: |
rustup default $(cat rust-toolchain)
pip install dist/${{ env.PACKAGE_NAME }}-*.tar.gz --force-reinstall pip install dist/${{ env.PACKAGE_NAME }}-*.tar.gz --force-reinstall
sg --help sg --help
- name: "Upload sdist" - name: "Upload sdist"
@@ -181,7 +180,7 @@ jobs:
- macos-x86_64 - macos-x86_64
- windows - windows
- linux - linux
# - linux-cross I would want to support linux-cross but it is too hard for me to compile c projects for tree-sitter-languages # - linux-cross I would want to support linux-cross but it is too hard for me to compile c projects for tree-sitter-languages
# If you don't set release flag, it's a dry run (no uploads). # If you don't set release flag, it's a dry run (no uploads).
if: "startsWith(github.event.ref, 'refs/tags') || inputs.need_release" if: "startsWith(github.event.ref, 'refs/tags') || inputs.need_release"
environment: environment:
-1
View File
@@ -1 +0,0 @@
stable
+3
View File
@@ -0,0 +1,3 @@
[toolchain]
channel = "stable"
components = ["rustfmt", "clippy"]