Release 0.11.0

This commit is contained in:
github-actions 2025-01-05 22:57:32 +00:00
parent 438b351914
commit 465f1612ad
7 changed files with 82 additions and 43 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.10.0 - uses: bazel-contrib/setup-bazel@0.11.0
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.10.0 - uses: bazel-contrib/setup-bazel@0.11.0
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.10.0 - uses: bazel-contrib/setup-bazel@0.11.0
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.10.0 - uses: bazel-contrib/setup-bazel@0.11.0
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.10.0 - uses: bazel-contrib/setup-bazel@0.11.0
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.10.0 - uses: bazel-contrib/setup-bazel@0.11.0
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.10.0 - uses: bazel-contrib/setup-bazel@0.11.0
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.10.0 - uses: bazel-contrib/setup-bazel@0.11.0
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.10.0 - uses: bazel-contrib/setup-bazel@0.11.0
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.10.0 - uses: bazel-contrib/setup-bazel@0.11.0
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.10.0 - uses: bazel-contrib/setup-bazel@0.11.0
with: with:
google-credentials: ${{ secrets.GOOGLE_CLOUD_KEY }} google-credentials: ${{ secrets.GOOGLE_CLOUD_KEY }}
``` ```
@ -190,7 +190,7 @@ Default is one of the following:
#### Use `C` drive letter #### Use `C` drive letter
```yaml ```yaml
- uses: bazel-contrib/setup-bazel@0.10.0 - uses: bazel-contrib/setup-bazel@0.11.0
with: with:
output-base: C:/_bazel output-base: C:/_bazel
``` ```
@ -210,7 +210,7 @@ Default `false`.
#### Store a single repository cache #### Store a single repository cache
```yaml ```yaml
- uses: bazel-contrib/setup-bazel@0.10.0 - uses: bazel-contrib/setup-bazel@0.11.0
with: with:
repository-cache: true repository-cache: true
``` ```
@ -218,7 +218,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.10.0 - uses: bazel-contrib/setup-bazel@0.11.0
with: with:
repository-cache: examples/gem/WORKSPACE repository-cache: examples/gem/WORKSPACE
``` ```

49
dist/main/index.js vendored
View file

@ -129,6 +129,9 @@ if (externalCacheConfig) {
} }
} }
const token = core.getInput('token')
core.exportVariable('BAZELISK_GITHUB_TOKEN', token)
module.exports = { module.exports = {
baseCacheKey, baseCacheKey,
bazeliskCache: { bazeliskCache: {
@ -95701,6 +95704,14 @@ module.exports = require("node:assert");
/***/ }), /***/ }),
/***/ 4573:
/***/ ((module) => {
"use strict";
module.exports = require("node:buffer");
/***/ }),
/***/ 8474: /***/ 8474:
/***/ ((module) => { /***/ ((module) => {
@ -95709,6 +95720,14 @@ module.exports = require("node:events");
/***/ }), /***/ }),
/***/ 1708:
/***/ ((module) => {
"use strict";
module.exports = require("node:process");
/***/ }),
/***/ 7075: /***/ 7075:
/***/ ((module) => { /***/ ((module) => {
@ -97838,6 +97857,7 @@ exports.composeScalar = composeScalar;
"use strict"; "use strict";
var node_process = __nccwpck_require__(1708);
var directives = __nccwpck_require__(1342); var directives = __nccwpck_require__(1342);
var Document = __nccwpck_require__(3021); var Document = __nccwpck_require__(3021);
var errors = __nccwpck_require__(1464); var errors = __nccwpck_require__(1464);
@ -97971,7 +97991,7 @@ class Composer {
} }
/** Advance the composer by one CST token. */ /** Advance the composer by one CST token. */
*next(token) { *next(token) {
if (process.env.LOG_STREAM) if (node_process.env.LOG_STREAM)
console.dir(token, { depth: null }); console.dir(token, { depth: null });
switch (token.type) { switch (token.type) {
case 'directive': case 'directive':
@ -99013,7 +99033,7 @@ function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIn
if (atNewline) { if (atNewline) {
if (comment) if (comment)
comment += token.source; comment += token.source;
else else if (!found || indicator !== 'seq-item-ind')
spaceBefore = true; spaceBefore = true;
} }
else else
@ -100146,19 +100166,21 @@ exports.visitAsync = visit.visitAsync;
/***/ }), /***/ }),
/***/ 7249: /***/ 7249:
/***/ ((__unused_webpack_module, exports) => { /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict"; "use strict";
var node_process = __nccwpck_require__(1708);
function debug(logLevel, ...messages) { function debug(logLevel, ...messages) {
if (logLevel === 'debug') if (logLevel === 'debug')
console.log(...messages); console.log(...messages);
} }
function warn(logLevel, warning) { function warn(logLevel, warning) {
if (logLevel === 'debug' || logLevel === 'warn') { if (logLevel === 'debug' || logLevel === 'warn') {
if (typeof process !== 'undefined' && process.emitWarning) if (typeof node_process.emitWarning === 'function')
process.emitWarning(warning); node_process.emitWarning(warning);
else else
console.warn(warning); console.warn(warning);
} }
@ -102334,6 +102356,7 @@ exports.LineCounter = LineCounter;
"use strict"; "use strict";
var node_process = __nccwpck_require__(1708);
var cst = __nccwpck_require__(3461); var cst = __nccwpck_require__(3461);
var lexer = __nccwpck_require__(361); var lexer = __nccwpck_require__(361);
@ -102500,7 +102523,7 @@ class Parser {
*/ */
*next(source) { *next(source) {
this.source = source; this.source = source;
if (process.env.LOG_TOKENS) if (node_process.env.LOG_TOKENS)
console.log('|', cst.prettyToken(source)); console.log('|', cst.prettyToken(source));
if (this.atScalar) { if (this.atScalar) {
this.atScalar = false; this.atScalar = false;
@ -103911,6 +103934,7 @@ exports.getTags = getTags;
"use strict"; "use strict";
var node_buffer = __nccwpck_require__(4573);
var Scalar = __nccwpck_require__(3301); var Scalar = __nccwpck_require__(3301);
var stringifyString = __nccwpck_require__(3069); var stringifyString = __nccwpck_require__(3069);
@ -103927,8 +103951,8 @@ const binary = {
* document.querySelector('#photo').src = URL.createObjectURL(blob) * document.querySelector('#photo').src = URL.createObjectURL(blob)
*/ */
resolve(src, onError) { resolve(src, onError) {
if (typeof Buffer === 'function') { if (typeof node_buffer.Buffer === 'function') {
return Buffer.from(src, 'base64'); return node_buffer.Buffer.from(src, 'base64');
} }
else if (typeof atob === 'function') { else if (typeof atob === 'function') {
// On IE 11, atob() can't handle newlines // On IE 11, atob() can't handle newlines
@ -103946,11 +103970,11 @@ const binary = {
stringify({ comment, type, value }, ctx, onComment, onChompKeep) { stringify({ comment, type, value }, ctx, onComment, onChompKeep) {
const buf = value; // checked earlier by binary.identify() const buf = value; // checked earlier by binary.identify()
let str; let str;
if (typeof Buffer === 'function') { if (typeof node_buffer.Buffer === 'function') {
str = str =
buf instanceof Buffer buf instanceof node_buffer.Buffer
? buf.toString('base64') ? buf.toString('base64')
: Buffer.from(buf.buffer).toString('base64'); : node_buffer.Buffer.from(buf.buffer).toString('base64');
} }
else if (typeof btoa === 'function') { else if (typeof btoa === 'function') {
let s = ''; let s = '';
@ -106175,8 +106199,7 @@ async function downloadBazelisk() {
filename = `${filename}.exe` filename = `${filename}.exe`
} }
const token = core.getInput('token') const octokit = github.getOctokit(process.env.BAZELISK_GITHUB_TOKEN, {
const octokit = github.getOctokit(token, {
baseUrl: 'https://api.github.com' baseUrl: 'https://api.github.com'
}) })
const { data: releases } = await octokit.rest.repos.listReleases({ const { data: releases } = await octokit.rest.repos.listReleases({

File diff suppressed because one or more lines are too long

38
dist/post/index.js vendored
View file

@ -129,6 +129,9 @@ if (externalCacheConfig) {
} }
} }
const token = core.getInput('token')
core.exportVariable('BAZELISK_GITHUB_TOKEN', token)
module.exports = { module.exports = {
baseCacheKey, baseCacheKey,
bazeliskCache: { bazeliskCache: {
@ -94778,6 +94781,14 @@ module.exports = require("node:assert");
/***/ }), /***/ }),
/***/ 4573:
/***/ ((module) => {
"use strict";
module.exports = require("node:buffer");
/***/ }),
/***/ 8474: /***/ 8474:
/***/ ((module) => { /***/ ((module) => {
@ -96915,6 +96926,7 @@ exports.composeScalar = composeScalar;
"use strict"; "use strict";
var node_process = __nccwpck_require__(1708);
var directives = __nccwpck_require__(1342); var directives = __nccwpck_require__(1342);
var Document = __nccwpck_require__(3021); var Document = __nccwpck_require__(3021);
var errors = __nccwpck_require__(1464); var errors = __nccwpck_require__(1464);
@ -97048,7 +97060,7 @@ class Composer {
} }
/** Advance the composer by one CST token. */ /** Advance the composer by one CST token. */
*next(token) { *next(token) {
if (process.env.LOG_STREAM) if (node_process.env.LOG_STREAM)
console.dir(token, { depth: null }); console.dir(token, { depth: null });
switch (token.type) { switch (token.type) {
case 'directive': case 'directive':
@ -98090,7 +98102,7 @@ function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIn
if (atNewline) { if (atNewline) {
if (comment) if (comment)
comment += token.source; comment += token.source;
else else if (!found || indicator !== 'seq-item-ind')
spaceBefore = true; spaceBefore = true;
} }
else else
@ -99223,19 +99235,21 @@ exports.visitAsync = visit.visitAsync;
/***/ }), /***/ }),
/***/ 7249: /***/ 7249:
/***/ ((__unused_webpack_module, exports) => { /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict"; "use strict";
var node_process = __nccwpck_require__(1708);
function debug(logLevel, ...messages) { function debug(logLevel, ...messages) {
if (logLevel === 'debug') if (logLevel === 'debug')
console.log(...messages); console.log(...messages);
} }
function warn(logLevel, warning) { function warn(logLevel, warning) {
if (logLevel === 'debug' || logLevel === 'warn') { if (logLevel === 'debug' || logLevel === 'warn') {
if (typeof process !== 'undefined' && process.emitWarning) if (typeof node_process.emitWarning === 'function')
process.emitWarning(warning); node_process.emitWarning(warning);
else else
console.warn(warning); console.warn(warning);
} }
@ -101411,6 +101425,7 @@ exports.LineCounter = LineCounter;
"use strict"; "use strict";
var node_process = __nccwpck_require__(1708);
var cst = __nccwpck_require__(3461); var cst = __nccwpck_require__(3461);
var lexer = __nccwpck_require__(361); var lexer = __nccwpck_require__(361);
@ -101577,7 +101592,7 @@ class Parser {
*/ */
*next(source) { *next(source) {
this.source = source; this.source = source;
if (process.env.LOG_TOKENS) if (node_process.env.LOG_TOKENS)
console.log('|', cst.prettyToken(source)); console.log('|', cst.prettyToken(source));
if (this.atScalar) { if (this.atScalar) {
this.atScalar = false; this.atScalar = false;
@ -102988,6 +103003,7 @@ exports.getTags = getTags;
"use strict"; "use strict";
var node_buffer = __nccwpck_require__(4573);
var Scalar = __nccwpck_require__(3301); var Scalar = __nccwpck_require__(3301);
var stringifyString = __nccwpck_require__(3069); var stringifyString = __nccwpck_require__(3069);
@ -103004,8 +103020,8 @@ const binary = {
* document.querySelector('#photo').src = URL.createObjectURL(blob) * document.querySelector('#photo').src = URL.createObjectURL(blob)
*/ */
resolve(src, onError) { resolve(src, onError) {
if (typeof Buffer === 'function') { if (typeof node_buffer.Buffer === 'function') {
return Buffer.from(src, 'base64'); return node_buffer.Buffer.from(src, 'base64');
} }
else if (typeof atob === 'function') { else if (typeof atob === 'function') {
// On IE 11, atob() can't handle newlines // On IE 11, atob() can't handle newlines
@ -103023,11 +103039,11 @@ const binary = {
stringify({ comment, type, value }, ctx, onComment, onChompKeep) { stringify({ comment, type, value }, ctx, onComment, onChompKeep) {
const buf = value; // checked earlier by binary.identify() const buf = value; // checked earlier by binary.identify()
let str; let str;
if (typeof Buffer === 'function') { if (typeof node_buffer.Buffer === 'function') {
str = str =
buf instanceof Buffer buf instanceof node_buffer.Buffer
? buf.toString('base64') ? buf.toString('base64')
: Buffer.from(buf.buffer).toString('base64'); : node_buffer.Buffer.from(buf.buffer).toString('base64');
} }
else if (typeof btoa === 'function') { else if (typeof btoa === 'function') {
let s = ''; let s = '';

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.10.0", "version": "0.11.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "setup-bazel", "name": "setup-bazel",
"version": "0.10.0", "version": "0.11.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/cache": "^4.0.0", "@actions/cache": "^4.0.0",

View file

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