Files
Bubberstation/tools/ci/install_ripgrep.sh
san7890 bf94b4433b Fixes Rust Caching for Run Linters (#80168)
## About The Pull Request

Ripgrep got updated some time ago, and that means that our cache went
out of date as we had to keep doing more work to install the new
dependencies that it has. This means we were eating up another **50
seconds** every time we ran Run Linters. Unfortunately, github caches
will only hash to a file that exists on the repository, not anything
that might exist after a tool is installed.

So, in order to do this, we create a new bash file `install_ripgrep.sh`
and also pin the ripgrep version. If we need to reap some new benefits
or it's substantially faster (which might not be the case as ripgrep is
already blazing fast), we just need to update `ci_dependencies.sh` and
the cache should work for future versions without us needing to purge
rust caches manually through github.

You can view a successful run here
https://github.com/san7890/bruhstation/actions/runs/7123029395/job/19394997831

I also did something similar for SpacemanDMM while i noticed it.
2023-12-08 02:55:05 -05:00

7 lines
133 B
Bash

#!/bin/bash
set -euo pipefail
source tools/ci/ci_dependencies.sh
cargo install ripgrep --features pcre2 --version $RIPGREP_VERSION