@tahminator/pipeline 1.0.106 → 1.0.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -546,6 +546,17 @@ Language toolchains are installed and cached by the setup action, so jobs don't
|
|
|
546
546
|
RUST_COMPONENTS: "clippy, rustfmt"
|
|
547
547
|
```
|
|
548
548
|
|
|
549
|
+
Go modules and the build cache are cached by setup-go under one key per Go version and `go.sum`, so every job shares one entry and only the first job to save it wins. Jobs that build differently, such as `-race` tests, can set `GO_CACHE_KEY` to save their own `GOMODCACHE` and `GOCACHE` entry with `actions/cache`. Setting it disables setup-go's built-in caching. `GO_CACHE_RESTORE_KEYS` optionally supplies newline-separated fallback prefixes.
|
|
550
|
+
|
|
551
|
+
```yaml
|
|
552
|
+
- uses: tahminator/pipeline/actions/setup@<version>
|
|
553
|
+
with:
|
|
554
|
+
INSTALL_GO: "true"
|
|
555
|
+
GO_CACHE_KEY: ${{ runner.os }}-${{ runner.arch }}-go-test-${{ hashFiles('**/go.sum') }}
|
|
556
|
+
GO_CACHE_RESTORE_KEYS: |
|
|
557
|
+
${{ runner.os }}-${{ runner.arch }}-go-test-
|
|
558
|
+
```
|
|
559
|
+
|
|
549
560
|
Java version and distribution are configurable with `JAVA_VERSION` and `JAVA_DISTRIBUTION`. For built-in dependency caching, `JAVA_CACHE` selects `maven` (default), `gradle`, or `sbt`; set it to `""` to disable built-in caching. `JAVA_CACHE_DEPENDENCY_PATH` accepts newline-separated dependency files/globs for the generated key, and `JAVA_CACHE_PATH` overrides the cached directories. Empty paths keep setup-java's defaults.
|
|
550
561
|
|
|
551
562
|
For an explicit cache key, set both `JAVA_CACHE_KEY` and `JAVA_CACHE_PATH`. This uses `actions/cache` and disables setup-java's built-in caching to avoid duplicate restore/save operations. `JAVA_CACHE_RESTORE_KEYS` optionally supplies newline-separated fallback prefixes. `JAVA_CACHE_DEPENDENCY_PATH` is ignored in this mode; compute dependency hashes in `JAVA_CACHE_KEY` yourself. Both cache modes require `INSTALL_JAVA: "true"`.
|