]> git.ipfire.org Git - thirdparty/curl.git/commit
GHA: fix caching old mingw-w64 toolchains in the Windows workflow
authorViktor Szakats <commit@vsz.me>
Sun, 2 Jun 2024 16:22:48 +0000 (18:22 +0200)
committerViktor Szakats <commit@vsz.me>
Sun, 2 Jun 2024 17:27:16 +0000 (19:27 +0200)
commit1d63e331de4ef8ad1e2f228c6815fa6fecec6dbb
tree0f6b492318928aea7fc24af77ae7dafa1a87c295
parent7d7712166f47299036e8b0c3aac4d2355b877de8
GHA: fix caching old mingw-w64 toolchains in the Windows workflow

- stop altering the `PATH` via `GITHUB_ENV`. This confused the
  `actions/cache` post-job, which needs to run in the exact same
  environment as its pre-job, to have a consistent cache entry "version"
  hash. Altering the `PATH` via `GITHUB_ENV` spills into the the
  post-job and breaks this hash. GHA doesn't reset the env automatically
  and I have not found a way to do it manually.

- add double-quotes where missing.

- move cache directory under `USERPROFILE` to not rely on absolute
  paths.

- make cache directory flatter and versionless.

Follow-up to 0914d8aadddac0d1459673d5b7f77e8f3378b22b #13759
Closes #13856
.github/workflows/windows.yml