Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build with rust #87

Merged
merged 8 commits into from
Aug 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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
Loading