Compare commits
No commits in common. "fd6cff5f63303fa6643565e4823bfb284788d397" and "cbd802719f9a1d516b093a3d3931f0733fdbf292" have entirely different histories.
fd6cff5f63
...
cbd802719f
7 changed files with 17 additions and 38 deletions
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
|
|
@ -24,41 +24,36 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: bazelbuild/examples
|
||||
sparse-checkout: frontend
|
||||
sparse-checkout: java-maven
|
||||
sparse-checkout-cone-mode: false
|
||||
|
||||
- run: shopt -s dotglob && mv java-maven/* . && rmdir java-maven && ls -la
|
||||
if: matrix.os != 'windows'
|
||||
- name: Checkout setup-bazel
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: setup-bazel
|
||||
|
||||
- name: Prepare environment (POSIX)
|
||||
if: matrix.os != 'windows'
|
||||
run: |
|
||||
rm $(which bazel)
|
||||
shopt -s dotglob
|
||||
mv frontend/* .
|
||||
rmdir frontend
|
||||
|
||||
mv java-maven/* .
|
||||
rmdir java-maven
|
||||
- name: Prepare environment (Windows)
|
||||
if: matrix.os == 'windows'
|
||||
run: |
|
||||
Remove-Item -Path (Get-Command bazel.exe).Source
|
||||
Get-ChildItem -Path frontend -Recurse -File | Move-Item -Destination .
|
||||
Remove-Item -Path frontend -Recurse -Force
|
||||
|
||||
Get-ChildItem -Path java-maven -Recurse -File | Move-Item -Destination .
|
||||
Remove-Item -Path java-maven
|
||||
- name: Setup Bazel
|
||||
uses: ./setup-bazel/
|
||||
with:
|
||||
bazelisk-cache: true
|
||||
bazelisk-version: 1.x
|
||||
bazelrc: test --test_output=errors
|
||||
remote-cache: true
|
||||
repository-cache: true
|
||||
|
||||
- run: bazel build ...
|
||||
- run: bazel test ...
|
||||
|
||||
- name: Start SSH session
|
||||
if: failure() && runner.debug == '1'
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
|
|
|
|||
14
dist/main/index.js
vendored
14
dist/main/index.js
vendored
|
|
@ -96973,15 +96973,7 @@ async function downloadBazelisk() {
|
|||
|
||||
core.debug('Adding to the cache...')
|
||||
fs.chmodSync(downloadPath, '755')
|
||||
|
||||
let bazelBinName = 'bazel'
|
||||
let bazeliskBinName = 'bazelisk'
|
||||
if (platform == 'windows') {
|
||||
bazelBinName = `${bazelBinName}.exe`
|
||||
bazeliskBinName = `${bazelBinName}.exe`
|
||||
}
|
||||
|
||||
const cachePath = await tc.cacheFile(downloadPath, bazelBinName, bazeliskBinName, version)
|
||||
const cachePath = await tc.cacheFile(downloadPath, 'bazel', 'bazelisk', version)
|
||||
core.info(`Successfully cached bazelisk to ${cachePath}`)
|
||||
|
||||
return cachePath
|
||||
|
|
@ -97066,7 +97058,7 @@ async function startRemoteCacheServer() {
|
|||
return
|
||||
}
|
||||
|
||||
core.startGroup("Start remote cache server")
|
||||
core.startGroup("Remote cache server")
|
||||
core.info(`Remote cache server log file path: ${config.remoteCache.logPath}`)
|
||||
|
||||
const log = fs.openSync(config.remoteCache.logPath, 'a')
|
||||
|
|
@ -97076,7 +97068,7 @@ async function startRemoteCacheServer() {
|
|||
stdio: ['ignore', log, log]
|
||||
})
|
||||
|
||||
core.info(`Started remote cache server with PID: ${serverProcess.pid}`)
|
||||
core.info(`Started remote cache server (${serverProcess.pid})`)
|
||||
core.saveState('remote-cache-server-pid', serverProcess.pid.toString())
|
||||
|
||||
serverProcess.unref()
|
||||
|
|
|
|||
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
2
dist/post/index.js
vendored
2
dist/post/index.js
vendored
|
|
@ -95961,7 +95961,7 @@ async function stopRemoteCacheServer() {
|
|||
return
|
||||
}
|
||||
|
||||
core.startGroup("Stop remote cache server")
|
||||
core.startGroup("Remote cache server")
|
||||
const pid = core.getState('remote-cache-server-pid')
|
||||
if (pid) {
|
||||
try {
|
||||
|
|
|
|||
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
14
index.js
14
index.js
|
|
@ -97,15 +97,7 @@ async function downloadBazelisk() {
|
|||
|
||||
core.debug('Adding to the cache...')
|
||||
fs.chmodSync(downloadPath, '755')
|
||||
|
||||
let bazelBinName = 'bazel'
|
||||
let bazeliskBinName = 'bazelisk'
|
||||
if (platform == 'windows') {
|
||||
bazelBinName = `${bazelBinName}.exe`
|
||||
bazeliskBinName = `${bazelBinName}.exe`
|
||||
}
|
||||
|
||||
const cachePath = await tc.cacheFile(downloadPath, bazelBinName, bazeliskBinName, version)
|
||||
const cachePath = await tc.cacheFile(downloadPath, 'bazel', 'bazelisk', version)
|
||||
core.info(`Successfully cached bazelisk to ${cachePath}`)
|
||||
|
||||
return cachePath
|
||||
|
|
@ -190,7 +182,7 @@ async function startRemoteCacheServer() {
|
|||
return
|
||||
}
|
||||
|
||||
core.startGroup("Start remote cache server")
|
||||
core.startGroup("Remote cache server")
|
||||
core.info(`Remote cache server log file path: ${config.remoteCache.logPath}`)
|
||||
|
||||
const log = fs.openSync(config.remoteCache.logPath, 'a')
|
||||
|
|
@ -200,7 +192,7 @@ async function startRemoteCacheServer() {
|
|||
stdio: ['ignore', log, log]
|
||||
})
|
||||
|
||||
core.info(`Started remote cache server with PID: ${serverProcess.pid}`)
|
||||
core.info(`Started remote cache server (${serverProcess.pid})`)
|
||||
core.saveState('remote-cache-server-pid', serverProcess.pid.toString())
|
||||
|
||||
serverProcess.unref()
|
||||
|
|
|
|||
2
post.js
2
post.js
|
|
@ -16,7 +16,7 @@ async function stopRemoteCacheServer() {
|
|||
return
|
||||
}
|
||||
|
||||
core.startGroup("Stop remote cache server")
|
||||
core.startGroup("Remote cache server")
|
||||
const pid = core.getState('remote-cache-server-pid')
|
||||
if (pid) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue