1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-12-20 22:29:12 +02:00

Speed up rust crate installs in workflow by using cargo-binstall (#2915)

When cargo xtask install-tools --binstall is used, precompiled binaries
are fetched if available.
Triggers a regular (compilation) install if binary releases do not
exist.

This is now configured to be used by the CI to speed up the build and
deploy workflows where possible.

Currently binary packages exist for:
- mdbook
- mdbook-pandoc
This commit is contained in:
michael-kerscher
2025-09-19 13:28:03 +02:00
committed by GitHub
parent 8b4849854a
commit f4a11a4fc5
2 changed files with 17 additions and 6 deletions

View File

@@ -5,8 +5,11 @@ description: Install mdbook with the dependencies we need.
runs:
using: composite
steps:
- name: Ensure cargo-binstall is installed
uses: cargo-bins/cargo-binstall@main
- name: Install mdbook
run: cargo xtask install-tools
run: cargo xtask install-tools --binstall
shell: bash
- name: Install dependencies for mdbook-pandoc