From 974f5a167b7b3640dd1da7550604e314ba3aca6e Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Mon, 11 Dec 2023 17:08:45 +0200 Subject: [PATCH] +ast-grep.github.io (#4361) * new file: projects/ast-grep.github.io/package.yml * linux gcc * RUSTFLAGS --- projects/ast-grep.github.io/package.yml | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 projects/ast-grep.github.io/package.yml diff --git a/projects/ast-grep.github.io/package.yml b/projects/ast-grep.github.io/package.yml new file mode 100644 index 00000000..3b05c4b1 --- /dev/null +++ b/projects/ast-grep.github.io/package.yml @@ -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}}