Skip to content

Commit

Permalink
Build with rust (#87)
Browse files Browse the repository at this point in the history
* update

* update release

* update release

* update relase

* update

* update

* update output

* update readme
  • Loading branch information
dzhou121 authored Aug 3, 2024
1 parent 6224db2 commit 593f041
Show file tree
Hide file tree
Showing 1,109 changed files with 551 additions and 8,689 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,13 @@ jobs:
run: |
cargo install tree-sitter-cli@^0.22 --locked
- uses: actions/setup-python@v5
with:
python-version: '3.x'

- uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Build grammars
if: always()
run: python ./make.py
run: mkdir ./output && mkdir ./tmp && cargo run --release -- --output ./output --tmp ./tmp

- name: Create tarball
run: |
Expand All @@ -83,10 +79,6 @@ jobs:
# before running, and would therefore delete the downloaded artifacts
- uses: actions/checkout@v4

- name: Checkout helix repo
run: |
git submodule update --init ./queries-helix/
- uses: actions/download-artifact@v4
with:
path: ./artefacts
Expand All @@ -96,8 +88,8 @@ jobs:
run: |
mkdir -p ./queries-output/
rsync -avh --progress ./queries-helix/runtime/queries/ ./queries-output/
cp ./queries-helix/LICENSE ./queries/helix.LICENSE
rsync -avh --progress ./tmp/helix/runtime/queries/ ./queries-output/
cp ./tmp/helix/LICENSE ./queries/helix.LICENSE
tar -C ./queries-output -cvf ./artefacts/queries.tar .
zstd ./artefacts/queries.tar -o ./artefacts/queries.tar.zst
Expand Down
Loading

0 comments on commit 593f041

Please sign in to comment.