Skip to content

Commit

Permalink
Release 0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jan 5, 2025
1 parent 438b351 commit 465f161
Show file tree
Hide file tree
Showing 7 changed files with 82 additions and 43 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.11.0
with:
# Avoid downloading Bazel every time.
bazelisk-cache: true
Expand Down Expand Up @@ -39,15 +39,15 @@ Default `""`.
#### Install Bazelisk 1.x

```yaml
- uses: bazel-contrib/setup-bazel@0.10.0
- uses: bazel-contrib/setup-bazel@0.11.0
with:
bazelisk-version: 1.x
```

#### Install exact Bazelisk version

```yaml
- uses: bazel-contrib/setup-bazel@0.10.0
- uses: bazel-contrib/setup-bazel@0.11.0
with:
bazelisk-version: 1.19.0
```
Expand All @@ -67,15 +67,15 @@ Default `""`.
#### Enable Bzlmod

```yaml
- uses: bazel-contrib/setup-bazel@0.10.0
- uses: bazel-contrib/setup-bazel@0.11.0
with:
bazelrc: common --enable_bzlmod
```

#### Add colors and timestamps

```yaml
- uses: bazel-contrib/setup-bazel@0.10.0
- uses: bazel-contrib/setup-bazel@0.11.0
with:
bazelrc: |
build --color=yes
Expand All @@ -97,15 +97,15 @@ Default `false`.
#### Share a single disk cache

```yaml
- uses: bazel-contrib/setup-bazel@0.10.0
- uses: bazel-contrib/setup-bazel@0.11.0
with:
disk-cache: true
```

#### Separate disk caches between workflows

```yaml
- uses: bazel-contrib/setup-bazel@0.10.0
- uses: bazel-contrib/setup-bazel@0.11.0
with:
disk-cache: ${{ github.workflow }}}
```
Expand All @@ -129,15 +129,15 @@ Default `false`.
#### Enable external repositories caches

```yaml
- uses: bazel-contrib/setup-bazel@0.10.0
- uses: bazel-contrib/setup-bazel@0.11.0
with:
external-cache: true
```

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

```yaml
- uses: bazel-contrib/setup-bazel@0.10.0
- uses: bazel-contrib/setup-bazel@0.11.0
with:
external-cache: |
manifest:
Expand All @@ -147,7 +147,7 @@ Default `false`.
#### Do not cache Ruby on Windows

```yaml
- uses: bazel-contrib/setup-bazel@0.10.0
- uses: bazel-contrib/setup-bazel@0.11.0
with:
external-cache: |
manifest:
Expand All @@ -167,7 +167,7 @@ Default `""`.
#### Authenticate via key

```yaml
- uses: bazel-contrib/setup-bazel@0.10.0
- uses: bazel-contrib/setup-bazel@0.11.0
with:
google-credentials: ${{ secrets.GOOGLE_CLOUD_KEY }}
```
Expand All @@ -190,7 +190,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.11.0
with:
output-base: C:/_bazel
```
Expand All @@ -210,15 +210,15 @@ Default `false`.
#### Store a single repository cache

```yaml
- uses: bazel-contrib/setup-bazel@0.10.0
- uses: bazel-contrib/setup-bazel@0.11.0
with:
repository-cache: true
```

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

```yaml
- uses: bazel-contrib/setup-bazel@0.10.0
- uses: bazel-contrib/setup-bazel@0.11.0
with:
repository-cache: examples/gem/WORKSPACE
```
Expand Down
49 changes: 36 additions & 13 deletions dist/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ if (externalCacheConfig) {
}
}

const token = core.getInput('token')
core.exportVariable('BAZELISK_GITHUB_TOKEN', token)

module.exports = {
baseCacheKey,
bazeliskCache: {
Expand Down Expand Up @@ -95701,6 +95704,14 @@ module.exports = require("node:assert");

/***/ }),

/***/ 4573:
/***/ ((module) => {

"use strict";
module.exports = require("node:buffer");

/***/ }),

/***/ 8474:
/***/ ((module) => {

Expand All @@ -95709,6 +95720,14 @@ module.exports = require("node:events");

/***/ }),

/***/ 1708:
/***/ ((module) => {

"use strict";
module.exports = require("node:process");

/***/ }),

/***/ 7075:
/***/ ((module) => {

Expand Down Expand Up @@ -97838,6 +97857,7 @@ exports.composeScalar = composeScalar;
"use strict";


var node_process = __nccwpck_require__(1708);
var directives = __nccwpck_require__(1342);
var Document = __nccwpck_require__(3021);
var errors = __nccwpck_require__(1464);
Expand Down Expand Up @@ -97971,7 +97991,7 @@ class Composer {
}
/** Advance the composer by one CST token. */
*next(token) {
if (process.env.LOG_STREAM)
if (node_process.env.LOG_STREAM)
console.dir(token, { depth: null });
switch (token.type) {
case 'directive':
Expand Down Expand Up @@ -99013,7 +99033,7 @@ function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIn
if (atNewline) {
if (comment)
comment += token.source;
else
else if (!found || indicator !== 'seq-item-ind')
spaceBefore = true;
}
else
Expand Down Expand Up @@ -100146,19 +100166,21 @@ exports.visitAsync = visit.visitAsync;
/***/ }),

/***/ 7249:
/***/ ((__unused_webpack_module, exports) => {
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {

"use strict";


var node_process = __nccwpck_require__(1708);

function debug(logLevel, ...messages) {
if (logLevel === 'debug')
console.log(...messages);
}
function warn(logLevel, warning) {
if (logLevel === 'debug' || logLevel === 'warn') {
if (typeof process !== 'undefined' && process.emitWarning)
process.emitWarning(warning);
if (typeof node_process.emitWarning === 'function')
node_process.emitWarning(warning);
else
console.warn(warning);
}
Expand Down Expand Up @@ -102334,6 +102356,7 @@ exports.LineCounter = LineCounter;
"use strict";


var node_process = __nccwpck_require__(1708);
var cst = __nccwpck_require__(3461);
var lexer = __nccwpck_require__(361);

Expand Down Expand Up @@ -102500,7 +102523,7 @@ class Parser {
*/
*next(source) {
this.source = source;
if (process.env.LOG_TOKENS)
if (node_process.env.LOG_TOKENS)
console.log('|', cst.prettyToken(source));
if (this.atScalar) {
this.atScalar = false;
Expand Down Expand Up @@ -103911,6 +103934,7 @@ exports.getTags = getTags;
"use strict";


var node_buffer = __nccwpck_require__(4573);
var Scalar = __nccwpck_require__(3301);
var stringifyString = __nccwpck_require__(3069);

Expand All @@ -103927,8 +103951,8 @@ const binary = {
* document.querySelector('#photo').src = URL.createObjectURL(blob)
*/
resolve(src, onError) {
if (typeof Buffer === 'function') {
return Buffer.from(src, 'base64');
if (typeof node_buffer.Buffer === 'function') {
return node_buffer.Buffer.from(src, 'base64');
}
else if (typeof atob === 'function') {
// On IE 11, atob() can't handle newlines
Expand All @@ -103946,11 +103970,11 @@ const binary = {
stringify({ comment, type, value }, ctx, onComment, onChompKeep) {
const buf = value; // checked earlier by binary.identify()
let str;
if (typeof Buffer === 'function') {
if (typeof node_buffer.Buffer === 'function') {
str =
buf instanceof Buffer
buf instanceof node_buffer.Buffer
? buf.toString('base64')
: Buffer.from(buf.buffer).toString('base64');
: node_buffer.Buffer.from(buf.buffer).toString('base64');
}
else if (typeof btoa === 'function') {
let s = '';
Expand Down Expand Up @@ -106175,8 +106199,7 @@ async function downloadBazelisk() {
filename = `${filename}.exe`
}

const token = core.getInput('token')
const octokit = github.getOctokit(token, {
const octokit = github.getOctokit(process.env.BAZELISK_GITHUB_TOKEN, {
baseUrl: 'https://api.github.com'
})
const { data: releases } = await octokit.rest.repos.listReleases({
Expand Down
2 changes: 1 addition & 1 deletion dist/main/index.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 465f161

Please sign in to comment.