ci: download ast-grep from github (#8728)

This commit is contained in:
Boshen 2025-01-26 18:19:00 +08:00 committed by GitHub
parent e9fb5febdf
commit ad87fc7a53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -163,11 +163,12 @@ jobs:
save-cache: ${{ github.ref_name == 'main' }}
cache-key: clippy
components: clippy
tools: ast-grep
- run: cargo lint -- -D warnings
- run: cargo lint --profile dev-no-debug-assertions -- -D warnings
# Waiting for https://github.com/rust-lang/rust-clippy/pull/13435
- name: Check Char and Byte Offset
run: |
npm i @ast-grep/cli -g
output=$(sg -p '$A.chars().enumerate()' -r '$A.char_indices()' -l rs)
echo "Output: $output"
if [ -n "$output" ]; then