Repository navigation
v5.4.0: Faster Windows hosted runners with mise data on the workspace drive
On GitHub-hosted Windows runners, mise's data directory now defaults to the workspace drive (usually D:\mise), which makes cache restores and tool installs much faster. This release also makes sure the action and later steps always run the mise binary it verified.
Changed
-
mise data lives on the workspace drive on GitHub-hosted Windows runners. On these runners the workspace is on
D:, but%LOCALAPPDATA%is onC:, and writes toC:are several times slower. The action now setsMISE_DATA_DIRtoD:\miseand exports it before restoring the cache, so the cache, mise, the shims, and later steps all use the same directory. Onwindows-latest(Go, TinyGo, wasm-tools, wasmtime, binaryen), cache restore dropped from 40–49 s to 10–11 s, and a cold install withcache: falsedropped from 47.4 s to 18.6 s.The new default applies only when
RUNNER_ENVIRONMENT=github-hosted, the OS is Windows, and the workspace isn't on%SYSTEMDRIVE%. Self-hosted runners keep%LOCALAPPDATA%\mise. Settingmise_dir,MISE_DATA_DIR, orXDG_DATA_HOMEstill overrides it. (#756 by @jdx, based on a patch by @kjanat in #752)
Fixed
- The action always runs the verified mise binary. The action checked
<mise_dir>/bin/miseagainstsha256or the signed checksums, but then calledmiseby name. Because the shims directory came before the bin directory onPATH, amisein the shims directory could run instead of the verified binary, both inside the action and in laterrun: mise …steps. The action now calls the verified binary by its absolute path and puts the bin directory ahead of the shims directory onPATH. (#753 by @jdx)
Upgrading
These steps apply only to GitHub-hosted Windows runners:
-
Existing Windows caches miss once because the cached path has changed.
-
If your workflow hardcodes
%LOCALAPPDATA%\misepaths, such asMISE_RUSTUP_HOMEorMISE_CARGO_HOME, or uses a customactions/cachepath, change them toD:\mise\.... To keep the old location, setmise_dir:- uses: jdx/mise-action@v5 with: mise_dir: C:\Users\runneradmin\AppData\Local\mise
Full Changelog: v5.3.0...v5.4.0