Skip to content

v5.4.0: Faster Windows hosted runners with mise data on the workspace drive

Choose a tag to compare

@github-actions github-actions released this 28 Nov 17:53
· 7 commits to main since this release
Immutable release. Only release title and notes can be modified.
3277a0f

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 on C:, and writes to C: are several times slower. The action now sets MISE_DATA_DIR to D:\mise and exports it before restoring the cache, so the cache, mise, the shims, and later steps all use the same directory. On windows-latest (Go, TinyGo, wasm-tools, wasmtime, binaryen), cache restore dropped from 40–49 s to 10–11 s, and a cold install with cache: false dropped 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. Setting mise_dir, MISE_DATA_DIR, or XDG_DATA_HOME still 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/mise against sha256 or the signed checksums, but then called mise by name. Because the shims directory came before the bin directory on PATH, a mise in the shims directory could run instead of the verified binary, both inside the action and in later run: mise … steps. The action now calls the verified binary by its absolute path and puts the bin directory ahead of the shims directory on PATH. (#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%\mise paths, such as MISE_RUSTUP_HOME or MISE_CARGO_HOME, or uses a custom actions/cache path, change them to D:\mise\.... To keep the old location, set mise_dir:

    - uses: jdx/mise-action@v5
      with:
        mise_dir: C:\Users\runneradmin\AppData\Local\mise

Full Changelog: v5.3.0...v5.4.0