info
This commit is contained in:
parent
c77cd78c8b
commit
ddb8388668
4 changed files with 10 additions and 9 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
|
@ -29,11 +29,12 @@ jobs:
|
||||||
repository: bazelbuild/examples
|
repository: bazelbuild/examples
|
||||||
sparse-checkout: java-maven
|
sparse-checkout: java-maven
|
||||||
sparse-checkout-cone-mode: false
|
sparse-checkout-cone-mode: false
|
||||||
|
- run: mv java-maven/* .
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: java-maven/setup-bazel
|
path: setup-bazel
|
||||||
- run: ls -l
|
- run: ls -l
|
||||||
- uses: ./java-maven/setup-bazel/
|
- uses: ./setup-bazel/
|
||||||
with:
|
with:
|
||||||
bazelisk-cache: true
|
bazelisk-cache: true
|
||||||
bazelisk-version: 1.x
|
bazelisk-version: 1.x
|
||||||
|
|
|
||||||
6
dist/main/index.js
vendored
6
dist/main/index.js
vendored
|
|
@ -96917,7 +96917,7 @@ async function setupBazelisk() {
|
||||||
core.startGroup('Setup Bazelisk')
|
core.startGroup('Setup Bazelisk')
|
||||||
let toolPath = tc.find('bazelisk', config.bazeliskVersion)
|
let toolPath = tc.find('bazelisk', config.bazeliskVersion)
|
||||||
if (toolPath) {
|
if (toolPath) {
|
||||||
core.debug(`Found in cache @ ${toolPath}`)
|
core.info(`Found in cache @ ${toolPath}`)
|
||||||
} else {
|
} else {
|
||||||
toolPath = await downloadBazelisk()
|
toolPath = await downloadBazelisk()
|
||||||
}
|
}
|
||||||
|
|
@ -96968,13 +96968,13 @@ async function downloadBazelisk() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const url = asset.browser_download_url
|
const url = asset.browser_download_url
|
||||||
core.debug(`Downloading from ${url}`)
|
core.info(`Downloading from ${url}`)
|
||||||
const downloadPath = await tc.downloadTool(url, undefined, `token ${token}`)
|
const downloadPath = await tc.downloadTool(url, undefined, `token ${token}`)
|
||||||
|
|
||||||
core.debug('Adding to the cache...')
|
core.debug('Adding to the cache...')
|
||||||
fs.chmodSync(downloadPath, '755')
|
fs.chmodSync(downloadPath, '755')
|
||||||
const cachePath = await tc.cacheFile(downloadPath, 'bazel', 'bazelisk', version)
|
const cachePath = await tc.cacheFile(downloadPath, 'bazel', 'bazelisk', version)
|
||||||
core.debug(`Successfully cached bazelisk to ${cachePath}`)
|
core.info(`Successfully cached bazelisk to ${cachePath}`)
|
||||||
|
|
||||||
return cachePath
|
return cachePath
|
||||||
}
|
}
|
||||||
|
|
|
||||||
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
6
index.js
6
index.js
|
|
@ -41,7 +41,7 @@ async function setupBazelisk() {
|
||||||
core.startGroup('Setup Bazelisk')
|
core.startGroup('Setup Bazelisk')
|
||||||
let toolPath = tc.find('bazelisk', config.bazeliskVersion)
|
let toolPath = tc.find('bazelisk', config.bazeliskVersion)
|
||||||
if (toolPath) {
|
if (toolPath) {
|
||||||
core.debug(`Found in cache @ ${toolPath}`)
|
core.info(`Found in cache @ ${toolPath}`)
|
||||||
} else {
|
} else {
|
||||||
toolPath = await downloadBazelisk()
|
toolPath = await downloadBazelisk()
|
||||||
}
|
}
|
||||||
|
|
@ -92,13 +92,13 @@ async function downloadBazelisk() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const url = asset.browser_download_url
|
const url = asset.browser_download_url
|
||||||
core.debug(`Downloading from ${url}`)
|
core.info(`Downloading from ${url}`)
|
||||||
const downloadPath = await tc.downloadTool(url, undefined, `token ${token}`)
|
const downloadPath = await tc.downloadTool(url, undefined, `token ${token}`)
|
||||||
|
|
||||||
core.debug('Adding to the cache...')
|
core.debug('Adding to the cache...')
|
||||||
fs.chmodSync(downloadPath, '755')
|
fs.chmodSync(downloadPath, '755')
|
||||||
const cachePath = await tc.cacheFile(downloadPath, 'bazel', 'bazelisk', version)
|
const cachePath = await tc.cacheFile(downloadPath, 'bazel', 'bazelisk', version)
|
||||||
core.debug(`Successfully cached bazelisk to ${cachePath}`)
|
core.info(`Successfully cached bazelisk to ${cachePath}`)
|
||||||
|
|
||||||
return cachePath
|
return cachePath
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue