mirror of
https://github.com/jdx/mise-action.git
synced 2026-05-14 22:00:34 +00:00
test: avoid hardcoded rust cache paths
This commit is contained in:
parent
2ddade2d57
commit
25a3f8d74b
1 changed files with 10 additions and 2 deletions
12
.github/workflows/test.yml
vendored
12
.github/workflows/test.yml
vendored
|
|
@ -141,8 +141,16 @@ jobs:
|
|||
cache_rust: true
|
||||
- name: Check Rust cache paths
|
||||
run: |
|
||||
test "$MISE_RUSTUP_HOME" = "$HOME/.local/share/mise/rustup"
|
||||
test "$MISE_CARGO_HOME" = "$HOME/.local/share/mise/cargo"
|
||||
if [ -n "${MISE_DATA_DIR:-}" ]; then
|
||||
mise_data_dir="$MISE_DATA_DIR"
|
||||
elif [ -n "${XDG_DATA_HOME:-}" ]; then
|
||||
mise_data_dir="$XDG_DATA_HOME/mise"
|
||||
else
|
||||
mise_data_dir="$HOME/.local/share/mise"
|
||||
fi
|
||||
|
||||
test "$MISE_RUSTUP_HOME" = "$mise_data_dir/rustup"
|
||||
test "$MISE_CARGO_HOME" = "$mise_data_dir/cargo"
|
||||
test -d "$MISE_RUSTUP_HOME"
|
||||
test -d "$MISE_CARGO_HOME"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue