Release 0.8.5
This commit is contained in:
parent
a948e3e824
commit
e403ad5071
7 changed files with 47 additions and 31 deletions
26
README.md
26
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.8.4
|
||||
- uses: bazel-contrib/setup-bazel@0.8.5
|
||||
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.8.4
|
||||
- uses: bazel-contrib/setup-bazel@0.8.5
|
||||
with:
|
||||
bazelisk-version: 1.x
|
||||
```
|
||||
|
|
@ -47,7 +47,7 @@ Default `""`.
|
|||
#### Install exact Bazelisk version
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.8.4
|
||||
- uses: bazel-contrib/setup-bazel@0.8.5
|
||||
with:
|
||||
bazelisk-version: 1.19.0
|
||||
```
|
||||
|
|
@ -67,7 +67,7 @@ Default `""`.
|
|||
#### Enable Bzlmod
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.8.4
|
||||
- uses: bazel-contrib/setup-bazel@0.8.5
|
||||
with:
|
||||
bazelrc: common --enable_bzlmod
|
||||
```
|
||||
|
|
@ -75,7 +75,7 @@ Default `""`.
|
|||
#### Add colors and timestamps
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.8.4
|
||||
- uses: bazel-contrib/setup-bazel@0.8.5
|
||||
with:
|
||||
bazelrc: |
|
||||
build --color=yes
|
||||
|
|
@ -97,7 +97,7 @@ Default `false`.
|
|||
#### Share a single disk cache
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.8.4
|
||||
- uses: bazel-contrib/setup-bazel@0.8.5
|
||||
with:
|
||||
disk-cache: true
|
||||
```
|
||||
|
|
@ -105,7 +105,7 @@ Default `false`.
|
|||
#### Separate disk caches between workflows
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.8.4
|
||||
- uses: bazel-contrib/setup-bazel@0.8.5
|
||||
with:
|
||||
disk-cache: ${{ github.workflow }}}
|
||||
```
|
||||
|
|
@ -129,7 +129,7 @@ Default `false`.
|
|||
#### Enable external repositories caches
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.8.4
|
||||
- uses: bazel-contrib/setup-bazel@0.8.5
|
||||
with:
|
||||
external-cache: true
|
||||
```
|
||||
|
|
@ -137,7 +137,7 @@ Default `false`.
|
|||
#### Cache NPM repositories based on `package-lock.json` contents
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.8.4
|
||||
- uses: bazel-contrib/setup-bazel@0.8.5
|
||||
with:
|
||||
external-cache: |
|
||||
manifest:
|
||||
|
|
@ -147,7 +147,7 @@ Default `false`.
|
|||
#### Do not cache Ruby on Windows
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.8.4
|
||||
- uses: bazel-contrib/setup-bazel@0.8.5
|
||||
with:
|
||||
external-cache: |
|
||||
manifest:
|
||||
|
|
@ -167,7 +167,7 @@ Default `""`.
|
|||
#### Authenticate via key
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.8.4
|
||||
- uses: bazel-contrib/setup-bazel@0.8.5
|
||||
with:
|
||||
google-credentials: ${{ secrets.GOOGLE_CLOUD_KEY }}
|
||||
```
|
||||
|
|
@ -188,7 +188,7 @@ Default `false`.
|
|||
#### Store a single repository cache
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.8.4
|
||||
- uses: bazel-contrib/setup-bazel@0.8.5
|
||||
with:
|
||||
repository-cache: true
|
||||
```
|
||||
|
|
@ -196,7 +196,7 @@ Default `false`.
|
|||
#### Store a repository cache from a custom location
|
||||
|
||||
```yaml
|
||||
- uses: bazel-contrib/setup-bazel@0.8.4
|
||||
- uses: bazel-contrib/setup-bazel@0.8.5
|
||||
with:
|
||||
repository-cache: examples/gem/WORKSPACE
|
||||
```
|
||||
|
|
|
|||
23
dist/main/index.js
vendored
23
dist/main/index.js
vendored
|
|
@ -92596,6 +92596,8 @@ class Lexer {
|
|||
*/
|
||||
*lex(source, incomplete = false) {
|
||||
if (source) {
|
||||
if (typeof source !== 'string')
|
||||
throw TypeError('source is not a string');
|
||||
this.buffer = this.buffer ? this.buffer + source : source;
|
||||
this.lineEndPos = null;
|
||||
}
|
||||
|
|
@ -92695,11 +92697,16 @@ class Lexer {
|
|||
}
|
||||
if (line[0] === '%') {
|
||||
let dirEnd = line.length;
|
||||
const cs = line.indexOf('#');
|
||||
if (cs !== -1) {
|
||||
let cs = line.indexOf('#');
|
||||
while (cs !== -1) {
|
||||
const ch = line[cs - 1];
|
||||
if (ch === ' ' || ch === '\t')
|
||||
if (ch === ' ' || ch === '\t') {
|
||||
dirEnd = cs - 1;
|
||||
break;
|
||||
}
|
||||
else {
|
||||
cs = line.indexOf('#', cs + 1);
|
||||
}
|
||||
}
|
||||
while (true) {
|
||||
const ch = line[dirEnd - 1];
|
||||
|
|
@ -94469,7 +94476,7 @@ const floatNaN = {
|
|||
identify: value => typeof value === 'number',
|
||||
default: true,
|
||||
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'
|
||||
? NaN
|
||||
: str[0] === '-'
|
||||
|
|
@ -94886,7 +94893,7 @@ const floatNaN = {
|
|||
identify: value => typeof value === 'number',
|
||||
default: true,
|
||||
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'
|
||||
? NaN
|
||||
: str[0] === '-'
|
||||
|
|
@ -96078,7 +96085,7 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
|
|||
if (keyComment) {
|
||||
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';
|
||||
throw new Error(msg);
|
||||
}
|
||||
|
|
@ -96931,7 +96938,9 @@ async function downloadBazelisk() {
|
|||
}
|
||||
|
||||
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({
|
||||
owner: 'bazelbuild',
|
||||
repo: 'bazelisk'
|
||||
|
|
|
|||
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
19
dist/post/index.js
vendored
19
dist/post/index.js
vendored
|
|
@ -91665,6 +91665,8 @@ class Lexer {
|
|||
*/
|
||||
*lex(source, incomplete = false) {
|
||||
if (source) {
|
||||
if (typeof source !== 'string')
|
||||
throw TypeError('source is not a string');
|
||||
this.buffer = this.buffer ? this.buffer + source : source;
|
||||
this.lineEndPos = null;
|
||||
}
|
||||
|
|
@ -91764,11 +91766,16 @@ class Lexer {
|
|||
}
|
||||
if (line[0] === '%') {
|
||||
let dirEnd = line.length;
|
||||
const cs = line.indexOf('#');
|
||||
if (cs !== -1) {
|
||||
let cs = line.indexOf('#');
|
||||
while (cs !== -1) {
|
||||
const ch = line[cs - 1];
|
||||
if (ch === ' ' || ch === '\t')
|
||||
if (ch === ' ' || ch === '\t') {
|
||||
dirEnd = cs - 1;
|
||||
break;
|
||||
}
|
||||
else {
|
||||
cs = line.indexOf('#', cs + 1);
|
||||
}
|
||||
}
|
||||
while (true) {
|
||||
const ch = line[dirEnd - 1];
|
||||
|
|
@ -93538,7 +93545,7 @@ const floatNaN = {
|
|||
identify: value => typeof value === 'number',
|
||||
default: true,
|
||||
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'
|
||||
? NaN
|
||||
: str[0] === '-'
|
||||
|
|
@ -93955,7 +93962,7 @@ const floatNaN = {
|
|||
identify: value => typeof value === 'number',
|
||||
default: true,
|
||||
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'
|
||||
? NaN
|
||||
: str[0] === '-'
|
||||
|
|
@ -95147,7 +95154,7 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
|
|||
if (keyComment) {
|
||||
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';
|
||||
throw new Error(msg);
|
||||
}
|
||||
|
|
|
|||
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
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "setup-bazel",
|
||||
"version": "0.8.4",
|
||||
"version": "0.8.5",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "setup-bazel",
|
||||
"version": "0.8.4",
|
||||
"version": "0.8.5",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/cache": "^3.2.2",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "setup-bazel",
|
||||
"version": "0.8.4",
|
||||
"version": "0.8.5",
|
||||
"description": "Install and configure Bazel for GitHub Actions",
|
||||
"main": "index.js",
|
||||
"engines": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue