mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+ast-grep.github.io (#4361)
* new file: projects/ast-grep.github.io/package.yml * linux gcc * RUSTFLAGS
This commit is contained in:
parent
ea56add719
commit
974f5a167b
1 changed files with 27 additions and 0 deletions
27
projects/ast-grep.github.io/package.yml
Normal file
27
projects/ast-grep.github.io/package.yml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/ast-grep/ast-grep/archive/refs/tags/{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
versions:
|
||||||
|
github: ast-grep/ast-grep
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
rust-lang.org: '*'
|
||||||
|
rust-lang.org/cargo: '*'
|
||||||
|
script:
|
||||||
|
- cargo install $CARGO_ARGS
|
||||||
|
env:
|
||||||
|
linux/aarch64:
|
||||||
|
RUSTFLAGS: "-C linker=cc"
|
||||||
|
CARGO_ARGS:
|
||||||
|
- --locked
|
||||||
|
- --root="{{prefix}}"
|
||||||
|
- --path=crates/cli
|
||||||
|
provides:
|
||||||
|
- bin/sg
|
||||||
|
- bin/ast-grep
|
||||||
|
test:
|
||||||
|
fixture: console.log('it is me')
|
||||||
|
script:
|
||||||
|
- mv $FIXTURE hi.js
|
||||||
|
- sg run -l js -p console.log hi.js | grep 'it is me'
|
||||||
|
- ast-grep --version | grep {{version}}
|
Loading…
Reference in a new issue