mirror of
https://github.com/ast-grep/ast-grep.git
synced 2026-05-06 06:06:46 -04:00
chore: Switch to rust-toolchain.toml
Signed-off-by: Xuanwo <github@xuanwo.io>
This commit is contained in:
committed by
Herrington Darkholme
parent
b11fc3fb23
commit
537599c265
@@ -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:
|
||||||
|
|||||||
@@ -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 +0,0 @@
|
|||||||
stable
|
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
[toolchain]
|
||||||
|
channel = "stable"
|
||||||
|
components = ["rustfmt", "clippy"]
|
||||||
Reference in New Issue
Block a user