Release 0.8.5

This commit is contained in:
github-actions 2024-06-04 13:57:06 +00:00
parent a948e3e824
commit e403ad5071
7 changed files with 47 additions and 31 deletions

View file

@ -6,7 +6,7 @@ and provides an advanced fine-grained caching to improve workflows performance.
## Usage ## Usage
```yaml ```yaml
- uses: bazel-contrib/setup-bazel@0.8.4 - uses: bazel-contrib/setup-bazel@0.8.5
with: with:
# Avoid downloading Bazel every time. # Avoid downloading Bazel every time.
bazelisk-cache: true bazelisk-cache: true
@ -39,7 +39,7 @@ Default `""`.
#### Install Bazelisk 1.x #### Install Bazelisk 1.x
```yaml ```yaml
- uses: bazel-contrib/setup-bazel@0.8.4 - uses: bazel-contrib/setup-bazel@0.8.5
with: with:
bazelisk-version: 1.x bazelisk-version: 1.x
``` ```
@ -47,7 +47,7 @@ Default `""`.
#### Install exact Bazelisk version #### Install exact Bazelisk version
```yaml ```yaml
- uses: bazel-contrib/setup-bazel@0.8.4 - uses: bazel-contrib/setup-bazel@0.8.5
with: with:
bazelisk-version: 1.19.0 bazelisk-version: 1.19.0
``` ```
@ -67,7 +67,7 @@ Default `""`.
#### Enable Bzlmod #### Enable Bzlmod
```yaml ```yaml
- uses: bazel-contrib/setup-bazel@0.8.4 - uses: bazel-contrib/setup-bazel@0.8.5
with: with:
bazelrc: common --enable_bzlmod bazelrc: common --enable_bzlmod
``` ```
@ -75,7 +75,7 @@ Default `""`.
#### Add colors and timestamps #### Add colors and timestamps
```yaml ```yaml
- uses: bazel-contrib/setup-bazel@0.8.4 - uses: bazel-contrib/setup-bazel@0.8.5
with: with:
bazelrc: | bazelrc: |
build --color=yes build --color=yes
@ -97,7 +97,7 @@ Default `false`.
#### Share a single disk cache #### Share a single disk cache
```yaml ```yaml
- uses: bazel-contrib/setup-bazel@0.8.4 - uses: bazel-contrib/setup-bazel@0.8.5
with: with:
disk-cache: true disk-cache: true
``` ```
@ -105,7 +105,7 @@ Default `false`.
#### Separate disk caches between workflows #### Separate disk caches between workflows
```yaml ```yaml
- uses: bazel-contrib/setup-bazel@0.8.4 - uses: bazel-contrib/setup-bazel@0.8.5
with: with:
disk-cache: ${{ github.workflow }}} disk-cache: ${{ github.workflow }}}
``` ```
@ -129,7 +129,7 @@ Default `false`.
#### Enable external repositories caches #### Enable external repositories caches
```yaml ```yaml
- uses: bazel-contrib/setup-bazel@0.8.4 - uses: bazel-contrib/setup-bazel@0.8.5
with: with:
external-cache: true external-cache: true
``` ```
@ -137,7 +137,7 @@ Default `false`.
#### Cache NPM repositories based on `package-lock.json` contents #### Cache NPM repositories based on `package-lock.json` contents
```yaml ```yaml
- uses: bazel-contrib/setup-bazel@0.8.4 - uses: bazel-contrib/setup-bazel@0.8.5
with: with:
external-cache: | external-cache: |
manifest: manifest:
@ -147,7 +147,7 @@ Default `false`.
#### Do not cache Ruby on Windows #### Do not cache Ruby on Windows
```yaml ```yaml
- uses: bazel-contrib/setup-bazel@0.8.4 - uses: bazel-contrib/setup-bazel@0.8.5
with: with:
external-cache: | external-cache: |
manifest: manifest:
@ -167,7 +167,7 @@ Default `""`.
#### Authenticate via key #### Authenticate via key
```yaml ```yaml
- uses: bazel-contrib/setup-bazel@0.8.4 - uses: bazel-contrib/setup-bazel@0.8.5
with: with:
google-credentials: ${{ secrets.GOOGLE_CLOUD_KEY }} google-credentials: ${{ secrets.GOOGLE_CLOUD_KEY }}
``` ```
@ -188,7 +188,7 @@ Default `false`.
#### Store a single repository cache #### Store a single repository cache
```yaml ```yaml
- uses: bazel-contrib/setup-bazel@0.8.4 - uses: bazel-contrib/setup-bazel@0.8.5
with: with:
repository-cache: true repository-cache: true
``` ```
@ -196,7 +196,7 @@ Default `false`.
#### Store a repository cache from a custom location #### Store a repository cache from a custom location
```yaml ```yaml
- uses: bazel-contrib/setup-bazel@0.8.4 - uses: bazel-contrib/setup-bazel@0.8.5
with: with:
repository-cache: examples/gem/WORKSPACE repository-cache: examples/gem/WORKSPACE
``` ```

23
dist/main/index.js vendored
View file

@ -92596,6 +92596,8 @@ class Lexer {
*/ */
*lex(source, incomplete = false) { *lex(source, incomplete = false) {
if (source) { if (source) {
if (typeof source !== 'string')
throw TypeError('source is not a string');
this.buffer = this.buffer ? this.buffer + source : source; this.buffer = this.buffer ? this.buffer + source : source;
this.lineEndPos = null; this.lineEndPos = null;
} }
@ -92695,11 +92697,16 @@ class Lexer {
} }
if (line[0] === '%') { if (line[0] === '%') {
let dirEnd = line.length; let dirEnd = line.length;
const cs = line.indexOf('#'); let cs = line.indexOf('#');
if (cs !== -1) { while (cs !== -1) {
const ch = line[cs - 1]; const ch = line[cs - 1];
if (ch === ' ' || ch === '\t') if (ch === ' ' || ch === '\t') {
dirEnd = cs - 1; dirEnd = cs - 1;
break;
}
else {
cs = line.indexOf('#', cs + 1);
}
} }
while (true) { while (true) {
const ch = line[dirEnd - 1]; const ch = line[dirEnd - 1];
@ -94469,7 +94476,7 @@ const floatNaN = {
identify: value => typeof value === 'number', identify: value => typeof value === 'number',
default: true, default: true,
tag: 'tag:yaml.org,2002:float', tag: 'tag:yaml.org,2002:float',
test: /^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/, test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
resolve: str => str.slice(-3).toLowerCase() === 'nan' resolve: str => str.slice(-3).toLowerCase() === 'nan'
? NaN ? NaN
: str[0] === '-' : str[0] === '-'
@ -94886,7 +94893,7 @@ const floatNaN = {
identify: value => typeof value === 'number', identify: value => typeof value === 'number',
default: true, default: true,
tag: 'tag:yaml.org,2002:float', tag: 'tag:yaml.org,2002:float',
test: /^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/, test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
resolve: (str) => str.slice(-3).toLowerCase() === 'nan' resolve: (str) => str.slice(-3).toLowerCase() === 'nan'
? NaN ? NaN
: str[0] === '-' : str[0] === '-'
@ -96078,7 +96085,7 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
if (keyComment) { if (keyComment) {
throw new Error('With simple keys, key nodes cannot have comments'); throw new Error('With simple keys, key nodes cannot have comments');
} }
if (identity.isCollection(key)) { if (identity.isCollection(key) || (!identity.isNode(key) && typeof key === 'object')) {
const msg = 'With simple keys, collection cannot be used as a key value'; const msg = 'With simple keys, collection cannot be used as a key value';
throw new Error(msg); throw new Error(msg);
} }
@ -96931,7 +96938,9 @@ async function downloadBazelisk() {
} }
const token = core.getInput('token') const token = core.getInput('token')
const octokit = github.getOctokit(token) const octokit = github.getOctokit(token, {
baseUrl: 'https://api.github.com'
})
const { data: releases } = await octokit.rest.repos.listReleases({ const { data: releases } = await octokit.rest.repos.listReleases({
owner: 'bazelbuild', owner: 'bazelbuild',
repo: 'bazelisk' repo: 'bazelisk'

File diff suppressed because one or more lines are too long

19
dist/post/index.js vendored
View file

@ -91665,6 +91665,8 @@ class Lexer {
*/ */
*lex(source, incomplete = false) { *lex(source, incomplete = false) {
if (source) { if (source) {
if (typeof source !== 'string')
throw TypeError('source is not a string');
this.buffer = this.buffer ? this.buffer + source : source; this.buffer = this.buffer ? this.buffer + source : source;
this.lineEndPos = null; this.lineEndPos = null;
} }
@ -91764,11 +91766,16 @@ class Lexer {
} }
if (line[0] === '%') { if (line[0] === '%') {
let dirEnd = line.length; let dirEnd = line.length;
const cs = line.indexOf('#'); let cs = line.indexOf('#');
if (cs !== -1) { while (cs !== -1) {
const ch = line[cs - 1]; const ch = line[cs - 1];
if (ch === ' ' || ch === '\t') if (ch === ' ' || ch === '\t') {
dirEnd = cs - 1; dirEnd = cs - 1;
break;
}
else {
cs = line.indexOf('#', cs + 1);
}
} }
while (true) { while (true) {
const ch = line[dirEnd - 1]; const ch = line[dirEnd - 1];
@ -93538,7 +93545,7 @@ const floatNaN = {
identify: value => typeof value === 'number', identify: value => typeof value === 'number',
default: true, default: true,
tag: 'tag:yaml.org,2002:float', tag: 'tag:yaml.org,2002:float',
test: /^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/, test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
resolve: str => str.slice(-3).toLowerCase() === 'nan' resolve: str => str.slice(-3).toLowerCase() === 'nan'
? NaN ? NaN
: str[0] === '-' : str[0] === '-'
@ -93955,7 +93962,7 @@ const floatNaN = {
identify: value => typeof value === 'number', identify: value => typeof value === 'number',
default: true, default: true,
tag: 'tag:yaml.org,2002:float', tag: 'tag:yaml.org,2002:float',
test: /^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/, test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
resolve: (str) => str.slice(-3).toLowerCase() === 'nan' resolve: (str) => str.slice(-3).toLowerCase() === 'nan'
? NaN ? NaN
: str[0] === '-' : str[0] === '-'
@ -95147,7 +95154,7 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
if (keyComment) { if (keyComment) {
throw new Error('With simple keys, key nodes cannot have comments'); throw new Error('With simple keys, key nodes cannot have comments');
} }
if (identity.isCollection(key)) { if (identity.isCollection(key) || (!identity.isNode(key) && typeof key === 'object')) {
const msg = 'With simple keys, collection cannot be used as a key value'; const msg = 'With simple keys, collection cannot be used as a key value';
throw new Error(msg); throw new Error(msg);
} }

File diff suppressed because one or more lines are too long

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "setup-bazel", "name": "setup-bazel",
"version": "0.8.4", "version": "0.8.5",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "setup-bazel", "name": "setup-bazel",
"version": "0.8.4", "version": "0.8.5",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/cache": "^3.2.2", "@actions/cache": "^3.2.2",

View file

@ -1,6 +1,6 @@
{ {
"name": "setup-bazel", "name": "setup-bazel",
"version": "0.8.4", "version": "0.8.5",
"description": "Install and configure Bazel for GitHub Actions", "description": "Install and configure Bazel for GitHub Actions",
"main": "index.js", "main": "index.js",
"engines": { "engines": {