Skip to content

Releases

v9.0.1

Choose a tag to compare

@alexarchambault alexarchambault released this 28 Oct 14:38
ee0650f

Highlights

COURSIER_CACHE is respected

If the COURSIER_CACHE environment variable is set when the action runs, for example in your workflow's env, the action now caches that directory. Before, it always cached the default OS-dependent location, which coursier doesn't use when COURSIER_CACHE is set. The path input still takes precedence.

OS and CPU architecture in the sbt, mill and Ammonite cache keys

The sbt, mill and Ammonite caches are stored at the same paths on Linux and macOS. Because of that, the fallback keys could restore a cache that was saved on a different OS or CPU architecture, even though these caches can hold platform-specific files such as native launchers. Their keys now include the runner's OS and architecture right after the cache name:

sbt-ivy2-cache-linux-x64-test-matrix-<matrix hash>-<build files hash>

The coursier cache keys don't change. Its path already differs per OS, and its content can be shared across architectures.

Note

The first run after upgrading starts the sbt, mill and Ammonite caches from scratch, because the new keys don't share a prefix with the old ones. Later runs restore and save caches as usual.

Missing inputs declared in action.yml

The action already read extraCoursierKey, extraCoursierHashedContent and read-cs-cache-files, but action.yml didn't declare them, so GitHub warned about unexpected inputs whenever they were passed. All three are now declared and documented in the README:

  • extraCoursierKey: an extra value added only to the coursier cache key
  • extraCoursierHashedContent: extra content hashed only into the coursier cache key
  • read-cs-cache-files (default true): set it to false to ignore .github/cs-cache-files

Fixes and internal changes

  • The coursier cache location is now detected with process.platform instead of running uname, so the action no longer needs a uname executable on PATH. Windows runners without Git Bash don't provide one.
  • Extra hashed content (extraHashedContent and related inputs) is now hashed in memory. Before, it was written to a temporary .tmp-cs-cache-key file in the workspace, and that file was left behind if hashing failed. Keys that combine build files with extra hashed content may change once. The previous cache is still restored through the fallback keys.
  • Removed dead and duplicated code: extraMillFiles was added to the mill globs twice, and an unused helper was dropped. The @actions/exec dependency is gone.
  • Moved cache key computation into its own module and added unit tests for cache keys and the cache mode handling (npm test now runs them).

Full Changelog: v9.0.0...v9.0.1

9.0.0

Choose a tag to compare

@alexarchambault alexarchambault released this 28 Oct 14:26
6618e16

Highlights

This is a major release because existing caches will mostly not be reused: the Coursier cache path changed, and the way cache keys are computed changed for some setups. Expect cache misses on the first run after upgrading. Workflow files need no other changes.

Only Coursier's v1 directory is cached (#875)

The action now caches only the Coursier cache itself (~/.cache/coursier/v1 on Linux, ~/Library/Caches/Coursier/v1 on macOS, ~\AppData\Local\Coursier\Cache\v1 on Windows). It no longer caches the whole Coursier directory, which also holds the archive cache (arc). Its contents are re-extracted from the archives in v1 when needed.

This makes caches smaller and saving them more reliable.

Same cache keys with CRLF and LF line endings (#875)

When build files are hashed for cache keys, CRLF line endings are now treated as LF. A Windows job that checks files out with core.autocrlf therefore gets the same keys as Linux and macOS jobs. Keys for files that already use LF line endings don't change.

Better Mill detection (#878)

The Mill cache (~/.cache/mill) is now enabled when any of these files are found:

  • build.mill, build.mill.yaml, build.mill.scala
  • mill-build/build.mill, mill-build/build.mill.yaml
  • .mill-* (like .mill-version) and .config/mill-* (like .config/mill-version)
  • mill, mill.bat, millw launcher scripts

Before, only .mill-version and the mill script were checked.

The Mill cache key also includes the sub-module build files (**/package.mill, **/package.mill.yaml, **/package.mill.scala). Changing a sub-module's build now updates the cache.

Documentation

  • The README has been largely rewritten. It now covers which directories get cached and when, how cache keys are built, and every input and output, with examples (#877).
  • Ammonite cache support is deprecated and no longer documented. It still works for now (~/.ammonite, ammoniteScripts, ignoreAmmonite, …), but may be removed in a future release (#877).

Updates / maintenance

  • Bump @types/node from 26.6.1 to 26.6.5 by @dependabot[bot] in #862
  • Bump js-yaml from 5.4.2 to 5.4.3 by @dependabot[bot] in #863
  • Bump @actions/cache from 6.2.0 to 6.3.0 by @dependabot[bot] in #864
  • Bump @typescript-eslint/parser from 8.70.0 to 8.72.0 by @dependabot[bot] in #872
  • Bump eslint from 10.10.0 to 10.13.0 by @dependabot[bot] in #870
  • Update dist by @github-actions[bot] in #867
  • Bump js-yaml from 5.4.3 to 5.5.0 by @dependabot[bot] in #868
  • Bump @typescript-eslint/eslint-plugin from 8.70.0 to 8.72.0 by @dependabot[bot] in #871
  • Update dist by @github-actions[bot] in #876

Full Changelog: v8.2.0...v9.0.0

8.2.0

Choose a tag to compare

@alexarchambault alexarchambault released this 16 Oct 12:21
057d08c

What's Changed

Updates / maintenance

Full Changelog: v8.1.1...v8.2.0

v8.1.1

Choose a tag to compare

@alexarchambault alexarchambault released this 12 May 21:28
95e5b10

Documentation updates

  • Document disableFallback input in README by @Copilot in #824

Updates / maintenance

  • Bump prettier from 3.8.1 to 3.8.2 by @dependabot[bot] in #823
  • Bump @types/node from 25.5.0 to 25.6.0 by @dependabot[bot] in #822
  • Bump @typescript-eslint/parser from 8.57.1 to 8.58.1 by @dependabot[bot] in #821
  • Bump eslint from 10.0.2 to 10.2.0 by @dependabot[bot] in #818
  • Add .gitattributes to fix Windows CI prettier format-check failure by @Copilot in #826
  • Bump @typescript-eslint/eslint-plugin from 8.57.1 to 8.59.3 by @dependabot[bot] in #820
  • Bump @actions/core from 3.0.0 to 3.0.1 by @dependabot[bot] in #831
  • Bump @actions/glob from 0.6.1 to 0.7.0 by @dependabot[bot] in #830
  • Bump @types/node from 25.6.0 to 25.7.0 by @dependabot[bot] in #828
  • Bump prettier from 3.8.2 to 3.8.3 by @dependabot[bot] in #827
  • Bump typescript from 5.9.3 to 6.0.3 by @dependabot[bot] in #829
  • Update dist by @github-actions[bot] in #832

Full Changelog: v8...v8.1.1

v8.1.0

Choose a tag to compare

@alexarchambault alexarchambault released this 17 Mar 00:22
90c3729

What's Changed

  • Clean up ephemeral files before saving sbt/ivy2 cache by @Copilot in #806
  • Add disableFallback option to prevent cache key fallback by @Copilot in #807
  • Add COURSIER_CACHE_ACTION_CACHE_VERSION env var for manual cache invalidation by @Copilot in #808

Updates / maintenance

  • Bump @stylistic/eslint-plugin-ts from 2.13.0 to 3.1.0 by @dependabot[bot] in #792
  • Bump prettier from 3.7.4 to 3.8.1 by @dependabot[bot] in #789
  • Bump @types/node from 25.2.0 to 25.3.0 by @dependabot[bot] in #791
  • Bump eslint from 8.57.0 to 10.0.0 by @dependabot[bot] in #793
  • Bump @actions/glob from 0.5.0 to 0.6.1 by @dependabot[bot] in #790
  • Update dist by @github-actions[bot] in #798
  • Bump @stylistic/eslint-plugin-ts from 3.1.0 to 4.4.1 by @dependabot[bot] in #800
  • Bump @typescript-eslint/parser from 8.56.0 to 8.56.1 by @dependabot[bot] in #801
  • Bump eslint from 10.0.0 to 10.0.2 by @dependabot[bot] in #802
  • Bump @types/node from 25.3.0 to 25.3.1 by @dependabot[bot] in #804
  • Bump @typescript-eslint/eslint-plugin from 8.56.0 to 8.56.1 by @dependabot[bot] in #803
  • Update dist by @github-actions[bot] in #805
  • Update dist by @github-actions[bot] in #809

Full Changelog: v8...v8.1.0

v8.0.1

Choose a tag to compare

@alexarchambault alexarchambault released this 20 Feb 00:42
e47d7d3

What's Changed

  • Improve and update Mill support by @lolgab in #773

  • Add a flag enabling to ignore saving/restoring Ammonite cache by @Gedochao in #774

  • Bump @types/node from 25.0.9 to 25.2.0 by @dependabot[bot] in #772

  • Add workflow ensuring PRs don't modify files under dist/ by @alexarchambault in #775

  • Update dist by @github-actions[bot] in #776

  • Bump @typescript-eslint/parser from 6.20.0 to 8.54.0 by @dependabot[bot] in #769

  • Bump eslint-plugin-github from 4.10.2 to 6.0.0 by @dependabot[bot] in #652

  • Update dist by @github-actions[bot] in #786

  • Bump @actions/core from 2.0.2 to 3.0.0 by @dependabot[bot] in #770

  • Bump @actions/cache from 4.1.0 to 6.0.0 by @dependabot[bot] in #771

  • Update dist by @github-actions[bot] in #788

New Contributors

Full Changelog: v8...v8.0.1

v8.0.0

Choose a tag to compare

@alexarchambault alexarchambault released this 02 Feb 19:20
c5ca793

What's Changed

This release mainly switches from Node from 24 to Node 25

Updates / maintenance

Full Changelog: v7...v8.0.0

v7.0.0

Choose a tag to compare

@alexarchambault alexarchambault released this 28 Oct 00:45
bebeeb0

These changes are identical to the 6.4.8 ones. These were reverted on the 6.x branch in 6.4.9, and added back in 7.x here.

What's Changed

Full Changelog: v6.4.9...v7.0.0

v6.4.9

Choose a tag to compare

@alexarchambault alexarchambault released this 28 Oct 00:43
4e26158

Identical to 6.4.7

This somehow reverts the 6.4.8 changes on the 6.x branch, reverting the node version bump to node 24 in particular.

The 6.4.8 changes are going to be added back in 7.0.0.

v6.4.8

Choose a tag to compare

@alexarchambault alexarchambault released this 13 Oct 11:09
bebeeb0

What's Changed

Full Changelog: v6...v6.4.8