Compare commits
70 commits
bazelisk-g
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
30962902d2 | ||
|
|
417f3387fe | ||
|
|
887da5f6b9 | ||
|
|
3217c4f420 | ||
|
|
18fd541ab1 | ||
|
|
e74b1abaf7 | ||
|
|
3af227a251 | ||
|
|
c9a2a71272 | ||
|
|
09d5e77e57 | ||
|
|
5a2f9a2f05 | ||
|
|
bb67c3ebd7 | ||
|
|
b6a8ab687e | ||
|
|
083175551c | ||
|
|
b607b8f591 | ||
|
|
be4ac32ff6 | ||
|
|
00e306f4a9 | ||
|
|
b26a6f0e11 | ||
|
|
dbfe7273a9 | ||
|
|
1dc7f4819d | ||
|
|
82d28f5023 | ||
|
|
1bf89734c9 | ||
|
|
e820d6a037 | ||
|
|
66d3c1cddb | ||
|
|
271e4c2614 | ||
|
|
43d7d5ceab | ||
|
|
905421c656 | ||
|
|
5528b8082a | ||
|
|
39aba44572 | ||
|
|
51f283a17f | ||
|
|
7594e1b588 | ||
|
|
1ff8ab47ae | ||
|
|
6fe279591f | ||
|
|
81ef0d9acc | ||
|
|
4432ac8a23 | ||
|
|
2fab424f7c | ||
|
|
798f81ecfc | ||
|
|
22f06fe4d3 | ||
|
|
812c6371ef | ||
|
|
f22529d52b | ||
|
|
b1c5ac5231 | ||
|
|
b02abd0245 | ||
|
|
ec193958e9 | ||
|
|
25ec8ddd82 | ||
|
|
54c9086be8 | ||
|
|
20a70d3f31 | ||
|
|
4d8cee1d8a | ||
|
|
3d67a4f0cf | ||
|
|
976e823acb | ||
|
|
4fd964a13a | ||
|
|
40aa0be72e | ||
|
|
f26390261c | ||
|
|
14421f585a | ||
|
|
9ccf8a2650 | ||
|
|
c46b5ab465 | ||
|
|
f3b2b002ba | ||
|
|
e8776f58fb | ||
|
|
e0e802d0ce | ||
|
|
98248079ae | ||
|
|
bb67a55494 | ||
|
|
663f88d97a | ||
|
|
bc949b7ed4 | ||
|
|
30f539412d | ||
|
|
768017f3c7 | ||
|
|
6cabfc01da | ||
|
|
529dbc2648 | ||
|
|
104a0a36a0 | ||
|
|
c50333a369 | ||
|
|
451432a104 | ||
|
|
465f1612ad | ||
|
|
438b351914 |
14 changed files with 103766 additions and 106177 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -19,7 +19,7 @@ jobs:
|
|||
- ubuntu
|
||||
- windows
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v6
|
||||
- uses: ./
|
||||
- if: failure() && runner.debug == '1'
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
|
|
|
|||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
|
@ -15,8 +15,8 @@ jobs:
|
|||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
cache: npm
|
||||
node-version-file: package.json
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
nodejs 22.12.0
|
||||
nodejs 24.14.0
|
||||
|
|
|
|||
72
README.md
72
README.md
|
|
@ -6,7 +6,7 @@ and provides an advanced fine-grained caching to improve workflows performance.
|
|||
## Usage
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.10.0
|
||||
- uses: bazel-contrib/setup-bazel@0.18.0
|
||||
with:
|
||||
# Avoid downloading Bazel every time.
|
||||
bazelisk-cache: true
|
||||
|
|
@ -39,7 +39,7 @@ Default `""`.
|
|||
#### Install Bazelisk 1.x
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.10.0
|
||||
- uses: bazel-contrib/setup-bazel@0.18.0
|
||||
with:
|
||||
bazelisk-version: 1.x
|
||||
```
|
||||
|
|
@ -47,7 +47,7 @@ Default `""`.
|
|||
#### Install exact Bazelisk version
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.10.0
|
||||
- uses: bazel-contrib/setup-bazel@0.18.0
|
||||
with:
|
||||
bazelisk-version: 1.19.0
|
||||
```
|
||||
|
|
@ -67,7 +67,7 @@ Default `""`.
|
|||
#### Enable Bzlmod
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.10.0
|
||||
- uses: bazel-contrib/setup-bazel@0.18.0
|
||||
with:
|
||||
bazelrc: common --enable_bzlmod
|
||||
```
|
||||
|
|
@ -75,7 +75,7 @@ Default `""`.
|
|||
#### Add colors and timestamps
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.10.0
|
||||
- uses: bazel-contrib/setup-bazel@0.18.0
|
||||
with:
|
||||
bazelrc: |
|
||||
build --color=yes
|
||||
|
|
@ -83,6 +83,30 @@ Default `""`.
|
|||
```
|
||||
</details>
|
||||
|
||||
### `cache-save`
|
||||
|
||||
Whether to save caches at the end of the workflow.
|
||||
|
||||
Set to `false` for pull requests to allow cache restoration without saving,
|
||||
which prevents PRs from polluting the cache while still benefiting from it.
|
||||
|
||||
Default `true`.
|
||||
|
||||
<details>
|
||||
<summary>Examples</summary>
|
||||
|
||||
#### Disable cache saving on pull requests
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.18.0
|
||||
with:
|
||||
bazelisk-cache: true
|
||||
disk-cache: ${{ github.workflow }}
|
||||
repository-cache: true
|
||||
cache-save: ${{ github.event_name != 'pull_request' }}
|
||||
```
|
||||
</details>
|
||||
|
||||
### `disk-cache`
|
||||
|
||||
Enable [`disk_cache`][2] and store it on GitHub based on contents of `BUILD` files.
|
||||
|
|
@ -97,7 +121,7 @@ Default `false`.
|
|||
#### Share a single disk cache
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.10.0
|
||||
- uses: bazel-contrib/setup-bazel@0.18.0
|
||||
with:
|
||||
disk-cache: true
|
||||
```
|
||||
|
|
@ -105,9 +129,9 @@ Default `false`.
|
|||
#### Separate disk caches between workflows
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.10.0
|
||||
- uses: bazel-contrib/setup-bazel@0.18.0
|
||||
with:
|
||||
disk-cache: ${{ github.workflow }}}
|
||||
disk-cache: ${{ github.workflow }}
|
||||
```
|
||||
</details>
|
||||
|
||||
|
|
@ -129,7 +153,7 @@ Default `false`.
|
|||
#### Enable external repositories caches
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.10.0
|
||||
- uses: bazel-contrib/setup-bazel@0.18.0
|
||||
with:
|
||||
external-cache: true
|
||||
```
|
||||
|
|
@ -137,7 +161,7 @@ Default `false`.
|
|||
#### Cache NPM repositories based on `package-lock.json` contents
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.10.0
|
||||
- uses: bazel-contrib/setup-bazel@0.18.0
|
||||
with:
|
||||
external-cache: |
|
||||
manifest:
|
||||
|
|
@ -147,7 +171,7 @@ Default `false`.
|
|||
#### Do not cache Ruby on Windows
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.10.0
|
||||
- uses: bazel-contrib/setup-bazel@0.18.0
|
||||
with:
|
||||
external-cache: |
|
||||
manifest:
|
||||
|
|
@ -167,12 +191,20 @@ Default `""`.
|
|||
#### Authenticate via key
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.10.0
|
||||
- uses: bazel-contrib/setup-bazel@0.18.0
|
||||
with:
|
||||
google-credentials: ${{ secrets.GOOGLE_CLOUD_KEY }}
|
||||
```
|
||||
</details>
|
||||
|
||||
### `module-root`
|
||||
|
||||
Bazel module root directory, where `MODULE.bazel` and `WORKSPACE` is found.
|
||||
|
||||
Change this value to the module root if it's not the repository root.
|
||||
|
||||
Default `"."`.
|
||||
|
||||
### `output-base`
|
||||
|
||||
Change Bazel output base directory.
|
||||
|
|
@ -190,7 +222,7 @@ Default is one of the following:
|
|||
#### Use `C` drive letter
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.10.0
|
||||
- uses: bazel-contrib/setup-bazel@0.18.0
|
||||
with:
|
||||
output-base: C:/_bazel
|
||||
```
|
||||
|
|
@ -210,7 +242,7 @@ Default `false`.
|
|||
#### Store a single repository cache
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.10.0
|
||||
- uses: bazel-contrib/setup-bazel@0.18.0
|
||||
with:
|
||||
repository-cache: true
|
||||
```
|
||||
|
|
@ -218,10 +250,19 @@ Default `false`.
|
|||
#### Store a repository cache from a custom location
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.10.0
|
||||
- uses: bazel-contrib/setup-bazel@0.18.0
|
||||
with:
|
||||
repository-cache: examples/gem/WORKSPACE
|
||||
```
|
||||
|
||||
#### Store a repository cache from a list of custom locations
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.18.0
|
||||
with:
|
||||
repository-cache: |
|
||||
- MODULE.bazel
|
||||
- requirements_locked.txt
|
||||
```
|
||||
</details>
|
||||
|
||||
## Migrating from [`bazelbuild/setup-bazelisk`][6]
|
||||
|
|
@ -235,6 +276,7 @@ However, if you used a `bazel-version` input before, you will need to remove it
|
|||
To build action, run the following command:
|
||||
|
||||
```sh
|
||||
$ npm install
|
||||
$ npm run build
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,10 @@ inputs:
|
|||
description: Extra contents to write to user .bazelrc
|
||||
required: false
|
||||
default: ""
|
||||
cache-save:
|
||||
description: Whether to save caches. Set to false for pull requests to allow restores but prevent saves.
|
||||
required: false
|
||||
default: "true"
|
||||
cache-version:
|
||||
description: Version of all caches
|
||||
required: false
|
||||
|
|
@ -29,6 +33,10 @@ inputs:
|
|||
description: Google Cloud account key for remote cache
|
||||
required: false
|
||||
default: ""
|
||||
module-root:
|
||||
description: Bazel module root directory. Default is `.`
|
||||
required: false
|
||||
default: "."
|
||||
output-base:
|
||||
description: Bazel output base directory. Default is $HOME/.cache/bazel (POSIX) or D:/_bazel (Windows)
|
||||
required: false
|
||||
|
|
@ -46,3 +54,4 @@ runs:
|
|||
using: node20
|
||||
main: dist/main/index.js
|
||||
post: dist/post/index.js
|
||||
post-if: "!cancelled()"
|
||||
|
|
|
|||
57
config.js
57
config.js
|
|
@ -5,8 +5,9 @@ const core = require('@actions/core')
|
|||
const github = require('@actions/github')
|
||||
|
||||
const bazeliskVersion = core.getInput('bazelisk-version')
|
||||
const cacheSave = core.getBooleanInput('cache-save')
|
||||
const cacheVersion = core.getInput('cache-version')
|
||||
const externalCacheConfig = yaml.parse(core.getInput('external-cache'))
|
||||
const moduleRoot = core.getInput('module-root')
|
||||
|
||||
const homeDir = os.homedir()
|
||||
const arch = os.arch()
|
||||
|
|
@ -15,7 +16,12 @@ const platform = os.platform()
|
|||
let bazelOutputBase = core.getInput('output-base')
|
||||
if (!bazelOutputBase) {
|
||||
if (platform === 'win32') {
|
||||
// check if GITHUB_WORKSPACE starts with D:
|
||||
if (process.env.GITHUB_WORKSPACE?.toLowerCase()?.startsWith('d:')) {
|
||||
bazelOutputBase = 'D:/_bazel'
|
||||
} else {
|
||||
bazelOutputBase = `C:/_bazel`
|
||||
}
|
||||
} else {
|
||||
bazelOutputBase = `${homeDir}/.bazel`
|
||||
}
|
||||
|
|
@ -40,30 +46,33 @@ switch (platform) {
|
|||
break
|
||||
}
|
||||
|
||||
const baseCacheKey = `setup-bazel-${cacheVersion}-${platform}`
|
||||
const baseCacheKey = `setup-bazel-${cacheVersion}-${platform}-${arch}`
|
||||
const bazelrc = core.getMultilineInput('bazelrc')
|
||||
|
||||
const diskCacheConfig = core.getInput('disk-cache')
|
||||
const diskCacheEnabled = diskCacheConfig !== 'false'
|
||||
let diskCacheName = 'disk'
|
||||
if (diskCacheEnabled) {
|
||||
// Before Bazel 6.3, providing --disk_cache to common is an error,
|
||||
// with Bazel 6.3 and onwards, common accepts any legal Bazel option
|
||||
// https://github.com/bazelbuild/bazel/issues/3054
|
||||
bazelrc.push(`build --disk_cache=${bazelDisk}`)
|
||||
if (diskCacheName !== 'true') {
|
||||
diskCacheName = `${diskCacheName}-${diskCacheConfig}`
|
||||
}
|
||||
}
|
||||
|
||||
const repositoryCacheConfig = core.getInput('repository-cache')
|
||||
const repositoryCacheEnabled = repositoryCacheConfig !== 'false'
|
||||
const repositoryCacheConfig = yaml.parse(core.getInput('repository-cache'))
|
||||
const repositoryCacheEnabled = repositoryCacheConfig !== false
|
||||
let repositoryCacheFiles = [
|
||||
'MODULE.bazel',
|
||||
'WORKSPACE.bazel',
|
||||
'WORKSPACE.bzlmod',
|
||||
'WORKSPACE'
|
||||
`${moduleRoot}/MODULE.bazel`,
|
||||
`${moduleRoot}/WORKSPACE.bazel`,
|
||||
`${moduleRoot}/WORKSPACE.bzlmod`,
|
||||
`${moduleRoot}/WORKSPACE`
|
||||
]
|
||||
if (repositoryCacheEnabled) {
|
||||
bazelrc.push(`build --repository_cache=${bazelRepository}`)
|
||||
if (repositoryCacheConfig !== 'true') {
|
||||
bazelrc.push(`common --repository_cache=${bazelRepository}`)
|
||||
if (repositoryCacheConfig !== true) {
|
||||
repositoryCacheFiles = Array(repositoryCacheConfig).flat()
|
||||
}
|
||||
}
|
||||
|
|
@ -78,6 +87,7 @@ if (googleCredentials.length > 0 && !googleCredentialsSaved) {
|
|||
core.saveState('google-credentials-path', googleCredentialsPath)
|
||||
}
|
||||
|
||||
const externalCacheConfig = yaml.parse(core.getInput('external-cache'))
|
||||
const bazelExternal = core.toPosixPath(`${bazelOutputBase}/external`)
|
||||
const externalCache = {}
|
||||
if (externalCacheConfig) {
|
||||
|
|
@ -90,10 +100,10 @@ if (externalCacheConfig) {
|
|||
externalCache.baseCacheKey = `${baseCacheKey}-external-`
|
||||
externalCache.manifest = {
|
||||
files: [
|
||||
'MODULE.bazel',
|
||||
'WORKSPACE.bazel',
|
||||
'WORKSPACE.bzlmod',
|
||||
'WORKSPACE'
|
||||
`${moduleRoot}/MODULE.bazel`,
|
||||
`${moduleRoot}/WORKSPACE.bazel`,
|
||||
`${moduleRoot}/WORKSPACE.bzlmod`,
|
||||
`${moduleRoot}/WORKSPACE`
|
||||
],
|
||||
name: `external-${manifestName}-manifest`,
|
||||
path: `${os.tmpdir()}/external-cache-manifest.txt`
|
||||
|
|
@ -101,10 +111,10 @@ if (externalCacheConfig) {
|
|||
externalCache.default = {
|
||||
enabled: true,
|
||||
files: [
|
||||
'MODULE.bazel',
|
||||
'WORKSPACE.bazel',
|
||||
'WORKSPACE.bzlmod',
|
||||
'WORKSPACE'
|
||||
`${moduleRoot}/MODULE.bazel`,
|
||||
`${moduleRoot}/WORKSPACE.bazel`,
|
||||
`${moduleRoot}/WORKSPACE.bzlmod`,
|
||||
`${moduleRoot}/WORKSPACE`
|
||||
],
|
||||
name: (name) => { return `external-${name}` },
|
||||
paths: (name) => {
|
||||
|
|
@ -123,11 +133,15 @@ if (externalCacheConfig) {
|
|||
}
|
||||
}
|
||||
|
||||
const token = core.getInput('token')
|
||||
core.exportVariable('BAZELISK_GITHUB_TOKEN', token)
|
||||
|
||||
module.exports = {
|
||||
baseCacheKey,
|
||||
cacheSave,
|
||||
bazeliskCache: {
|
||||
enabled: core.getBooleanInput('bazelisk-cache'),
|
||||
files: ['.bazelversion'],
|
||||
files: [`${moduleRoot}/.bazelversion`],
|
||||
name: 'bazelisk',
|
||||
paths: [core.toPosixPath(`${userCacheDir}/bazelisk`)]
|
||||
},
|
||||
|
|
@ -136,8 +150,9 @@ module.exports = {
|
|||
diskCache: {
|
||||
enabled: diskCacheEnabled,
|
||||
files: [
|
||||
'**/BUILD.bazel',
|
||||
'**/BUILD'
|
||||
...repositoryCacheFiles,
|
||||
`${moduleRoot}/**/BUILD.bazel`,
|
||||
`${moduleRoot}/**/BUILD`
|
||||
],
|
||||
name: diskCacheName,
|
||||
paths: [bazelDisk]
|
||||
|
|
|
|||
105250
dist/main/index.js
vendored
105250
dist/main/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/main/index.js.map
vendored
2
dist/main/index.js.map
vendored
File diff suppressed because one or more lines are too long
102787
dist/post/index.js
vendored
102787
dist/post/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/post/index.js.map
vendored
2
dist/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
29
index.js
29
index.js
|
|
@ -69,7 +69,7 @@ async function downloadBazelisk() {
|
|||
filename = `${filename}.exe`
|
||||
}
|
||||
|
||||
const token = core.getInput('token')
|
||||
const token = process.env.BAZELISK_GITHUB_TOKEN
|
||||
const octokit = github.getOctokit(token, {
|
||||
baseUrl: 'https://api.github.com'
|
||||
})
|
||||
|
|
@ -96,7 +96,11 @@ async function downloadBazelisk() {
|
|||
|
||||
core.debug('Adding to the cache...');
|
||||
fs.chmodSync(downloadPath, '755');
|
||||
const cachePath = await tc.cacheFile(downloadPath, 'bazel', 'bazelisk', version)
|
||||
let bazel_name = "bazel";
|
||||
if (platform == 'windows') {
|
||||
bazel_name = `${bazel_name}.exe`
|
||||
}
|
||||
const cachePath = await tc.cacheFile(downloadPath, bazel_name, 'bazelisk', version)
|
||||
core.debug(`Successfully cached bazelisk to ${cachePath}`)
|
||||
|
||||
return cachePath
|
||||
|
|
@ -129,14 +133,16 @@ async function restoreExternalCaches(cacheConfig) {
|
|||
// Now restore all external caches defined in manifest
|
||||
if (fs.existsSync(path)) {
|
||||
const manifest = fs.readFileSync(path, { encoding: 'utf8' })
|
||||
for (const name of manifest.split('\n').filter(s => s)) {
|
||||
await restoreCache({
|
||||
const restorePromises = manifest.split('\n').filter(s => s)
|
||||
.map(name => {
|
||||
return restoreCache({
|
||||
enabled: cacheConfig[name]?.enabled ?? cacheConfig.default.enabled,
|
||||
files: cacheConfig[name]?.files || cacheConfig.default.files,
|
||||
name: cacheConfig.default.name(name),
|
||||
paths: cacheConfig.default.paths(name)
|
||||
})
|
||||
}
|
||||
});
|
||||
});
|
||||
await Promise.all(restorePromises);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -146,9 +152,10 @@ async function restoreCache(cacheConfig) {
|
|||
}
|
||||
|
||||
const delay = Math.random() * 1000 // timeout <= 1 sec to reduce 429 errors
|
||||
await setTimeout(delay, async function () {
|
||||
core.startGroup(`Restore cache for ${cacheConfig.name}`)
|
||||
await setTimeout(delay)
|
||||
|
||||
core.startGroup(`Restore cache for ${cacheConfig.name}`)
|
||||
try {
|
||||
const hash = await glob.hashFiles(cacheConfig.files.join('\n'))
|
||||
const name = cacheConfig.name
|
||||
const paths = cacheConfig.paths
|
||||
|
|
@ -171,9 +178,11 @@ async function restoreCache(cacheConfig) {
|
|||
} else {
|
||||
core.info(`Failed to restore ${name} cache`)
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
core.warning(`Failed to restore ${name} cache with error: ${err}`)
|
||||
} finally {
|
||||
core.endGroup()
|
||||
}())
|
||||
}
|
||||
}
|
||||
|
||||
run()
|
||||
|
|
|
|||
1222
package-lock.json
generated
1222
package-lock.json
generated
File diff suppressed because it is too large
Load diff
14
package.json
14
package.json
|
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
"name": "setup-bazel",
|
||||
"version": "0.10.0",
|
||||
"version": "0.18.0",
|
||||
"description": "Install and configure Bazel for GitHub Actions",
|
||||
"main": "index.js",
|
||||
"engines": {
|
||||
"node": "22.x"
|
||||
"node": "24.x"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "ncc build index.js -s -o dist/main && ncc build post.js -s -o dist/post",
|
||||
|
|
@ -13,11 +13,11 @@
|
|||
"author": "Alex Rodionov <p0deje@gmail.com>",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/cache": "^4.0.0",
|
||||
"@actions/core": "^1.10.1",
|
||||
"@actions/github": "^6.0.0",
|
||||
"@actions/glob": "^0.5.0",
|
||||
"@actions/tool-cache": "^2.0.1",
|
||||
"@actions/cache": "^6.0.0",
|
||||
"@actions/core": "^3.0.0",
|
||||
"@actions/github": "^9.0.0",
|
||||
"@actions/glob": "^0.6.0",
|
||||
"@actions/tool-cache": "^4.0.0",
|
||||
"@vercel/ncc": "^0.38.0",
|
||||
"yaml": "^2.2.1"
|
||||
}
|
||||
|
|
|
|||
5
post.js
5
post.js
|
|
@ -13,6 +13,11 @@ async function run() {
|
|||
}
|
||||
|
||||
async function saveCaches() {
|
||||
if (!config.cacheSave) {
|
||||
core.info('Cache saving is disabled (cache-save: false)')
|
||||
return
|
||||
}
|
||||
|
||||
await saveCache(config.bazeliskCache)
|
||||
await saveCache(config.diskCache)
|
||||
await saveCache(config.repositoryCache)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue