Skip to content

Commit c50333a

Browse files
author
github-actions
committed
Release 0.12.0
1 parent 451432a commit c50333a

File tree

7 files changed

+23
-23
lines changed

7 files changed

+23
-23
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ and provides an advanced fine-grained caching to improve workflows performance.
66
## Usage
77

88
```yaml
9-
- uses: bazel-contrib/setup-bazel@0.11.0
9+
- uses: bazel-contrib/setup-bazel@0.12.0
1010
with:
1111
# Avoid downloading Bazel every time.
1212
bazelisk-cache: true
@@ -39,15 +39,15 @@ Default `""`.
3939
#### Install Bazelisk 1.x
4040

4141
```yaml
42-
- uses: bazel-contrib/setup-bazel@0.11.0
42+
- uses: bazel-contrib/setup-bazel@0.12.0
4343
with:
4444
bazelisk-version: 1.x
4545
```
4646

4747
#### Install exact Bazelisk version
4848

4949
```yaml
50-
- uses: bazel-contrib/setup-bazel@0.11.0
50+
- uses: bazel-contrib/setup-bazel@0.12.0
5151
with:
5252
bazelisk-version: 1.19.0
5353
```
@@ -67,15 +67,15 @@ Default `""`.
6767
#### Enable Bzlmod
6868

6969
```yaml
70-
- uses: bazel-contrib/setup-bazel@0.11.0
70+
- uses: bazel-contrib/setup-bazel@0.12.0
7171
with:
7272
bazelrc: common --enable_bzlmod
7373
```
7474

7575
#### Add colors and timestamps
7676

7777
```yaml
78-
- uses: bazel-contrib/setup-bazel@0.11.0
78+
- uses: bazel-contrib/setup-bazel@0.12.0
7979
with:
8080
bazelrc: |
8181
build --color=yes
@@ -97,15 +97,15 @@ Default `false`.
9797
#### Share a single disk cache
9898

9999
```yaml
100-
- uses: bazel-contrib/setup-bazel@0.11.0
100+
- uses: bazel-contrib/setup-bazel@0.12.0
101101
with:
102102
disk-cache: true
103103
```
104104

105105
#### Separate disk caches between workflows
106106

107107
```yaml
108-
- uses: bazel-contrib/setup-bazel@0.11.0
108+
- uses: bazel-contrib/setup-bazel@0.12.0
109109
with:
110110
disk-cache: ${{ github.workflow }}}
111111
```
@@ -129,15 +129,15 @@ Default `false`.
129129
#### Enable external repositories caches
130130

131131
```yaml
132-
- uses: bazel-contrib/setup-bazel@0.11.0
132+
- uses: bazel-contrib/setup-bazel@0.12.0
133133
with:
134134
external-cache: true
135135
```
136136

137137
#### Cache NPM repositories based on `package-lock.json` contents
138138

139139
```yaml
140-
- uses: bazel-contrib/setup-bazel@0.11.0
140+
- uses: bazel-contrib/setup-bazel@0.12.0
141141
with:
142142
external-cache: |
143143
manifest:
@@ -147,7 +147,7 @@ Default `false`.
147147
#### Do not cache Ruby on Windows
148148

149149
```yaml
150-
- uses: bazel-contrib/setup-bazel@0.11.0
150+
- uses: bazel-contrib/setup-bazel@0.12.0
151151
with:
152152
external-cache: |
153153
manifest:
@@ -167,7 +167,7 @@ Default `""`.
167167
#### Authenticate via key
168168

169169
```yaml
170-
- uses: bazel-contrib/setup-bazel@0.11.0
170+
- uses: bazel-contrib/setup-bazel@0.12.0
171171
with:
172172
google-credentials: ${{ secrets.GOOGLE_CLOUD_KEY }}
173173
```
@@ -190,7 +190,7 @@ Default is one of the following:
190190
#### Use `C` drive letter
191191

192192
```yaml
193-
- uses: bazel-contrib/setup-bazel@0.11.0
193+
- uses: bazel-contrib/setup-bazel@0.12.0
194194
with:
195195
output-base: C:/_bazel
196196
```
@@ -210,15 +210,15 @@ Default `false`.
210210
#### Store a single repository cache
211211

212212
```yaml
213-
- uses: bazel-contrib/setup-bazel@0.11.0
213+
- uses: bazel-contrib/setup-bazel@0.12.0
214214
with:
215215
repository-cache: true
216216
```
217217

218218
#### Store a repository cache from a custom location
219219

220220
```yaml
221-
- uses: bazel-contrib/setup-bazel@0.11.0
221+
- uses: bazel-contrib/setup-bazel@0.12.0
222222
with:
223223
repository-cache: examples/gem/WORKSPACE
224224
```

dist/main/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const diskCacheConfig = core.getInput('disk-cache')
5353
const diskCacheEnabled = diskCacheConfig !== 'false'
5454
let diskCacheName = 'disk'
5555
if (diskCacheEnabled) {
56-
bazelrc.push(`build --disk_cache=${bazelDisk}`)
56+
bazelrc.push(`common --disk_cache=${bazelDisk}`)
5757
if (diskCacheName !== 'true') {
5858
diskCacheName = `${diskCacheName}-${diskCacheConfig}`
5959
}
@@ -68,7 +68,7 @@ let repositoryCacheFiles = [
6868
'WORKSPACE'
6969
]
7070
if (repositoryCacheEnabled) {
71-
bazelrc.push(`build --repository_cache=${bazelRepository}`)
71+
bazelrc.push(`common --repository_cache=${bazelRepository}`)
7272
if (repositoryCacheConfig !== 'true') {
7373
repositoryCacheFiles = Array(repositoryCacheConfig).flat()
7474
}

dist/main/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/post/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const diskCacheConfig = core.getInput('disk-cache')
5353
const diskCacheEnabled = diskCacheConfig !== 'false'
5454
let diskCacheName = 'disk'
5555
if (diskCacheEnabled) {
56-
bazelrc.push(`build --disk_cache=${bazelDisk}`)
56+
bazelrc.push(`common --disk_cache=${bazelDisk}`)
5757
if (diskCacheName !== 'true') {
5858
diskCacheName = `${diskCacheName}-${diskCacheConfig}`
5959
}
@@ -68,7 +68,7 @@ let repositoryCacheFiles = [
6868
'WORKSPACE'
6969
]
7070
if (repositoryCacheEnabled) {
71-
bazelrc.push(`build --repository_cache=${bazelRepository}`)
71+
bazelrc.push(`common --repository_cache=${bazelRepository}`)
7272
if (repositoryCacheConfig !== 'true') {
7373
repositoryCacheFiles = Array(repositoryCacheConfig).flat()
7474
}

dist/post/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setup-bazel",
3-
"version": "0.11.0",
3+
"version": "0.12.0",
44
"description": "Install and configure Bazel for GitHub Actions",
55
"main": "index.js",
66
"engines": {

0 commit comments

Comments
 (0)