diff options
author | Michael Davis | 2022-06-05 10:53:20 +0000 |
---|---|---|
committer | GitHub | 2022-06-05 10:53:20 +0000 |
commit | 0035c29fc16f6c795257e241fddd9f2178bc4b4c (patch) | |
tree | 12aa3cfc79b0871a2ae693246240b2f2ac2c9b40 /.github/workflows | |
parent | f1ae496860e10560d9a8b91a721168524411096a (diff) |
Use a minimal binary to fetch grammar sources in release CI (#2557)
This is an optimization for the release CI. The release CI can take
a while since it compiles release builds for all operating systems.
We cut down on duplicate work and overall time by fetching
tree-sitter grammar repositories and then using those repositories
in all later steps. Previously we built all of helix just to run
helix_loader::grammar::fetch_grammars()
which is wasteful on time. With this change we only build the
helix-loader crate.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/release.yml | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index efeb77e0..a83a1423 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,11 +23,9 @@ jobs: - name: Fetch tree-sitter grammars uses: actions-rs/cargo@v1 - env: - HELIX_DISABLE_AUTO_GRAMMAR_BUILD: yes with: command: run - args: -- --grammar fetch + args: --package=helix-loader --bin=hx-loader - name: Bundle grammars run: tar cJf grammars.tar.xz -C runtime/grammars/sources . |