enable windows
This commit is contained in:
parent
44190633ab
commit
cbd802719f
4 changed files with 26 additions and 9 deletions
29
.github/workflows/ci.yml
vendored
29
.github/workflows/ci.yml
vendored
|
|
@ -20,21 +20,33 @@ jobs:
|
|||
- ubuntu
|
||||
- windows
|
||||
steps:
|
||||
- run: rm $(which bazel)
|
||||
if: matrix.os != 'windows'
|
||||
- run: Remove-Item -Path (Get-Command bazel.exe).Source
|
||||
if: matrix.os == 'windows'
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout example
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: bazelbuild/examples
|
||||
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'
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout setup-bazel
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: setup-bazel
|
||||
- uses: ./setup-bazel/
|
||||
- name: Prepare environment (POSIX)
|
||||
if: matrix.os != 'windows'
|
||||
run: |
|
||||
rm $(which bazel)
|
||||
shopt -s dotglob
|
||||
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 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
|
||||
|
|
@ -42,5 +54,6 @@ jobs:
|
|||
repository-cache: true
|
||||
- run: bazel build ...
|
||||
- run: bazel test ...
|
||||
- if: failure() && runner.debug == '1'
|
||||
- name: Start SSH session
|
||||
if: failure() && runner.debug == '1'
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
|
|
|
|||
2
dist/post/index.js
vendored
2
dist/post/index.js
vendored
|
|
@ -95961,6 +95961,7 @@ async function stopRemoteCacheServer() {
|
|||
return
|
||||
}
|
||||
|
||||
core.startGroup("Remote cache server")
|
||||
const pid = core.getState('remote-cache-server-pid')
|
||||
if (pid) {
|
||||
try {
|
||||
|
|
@ -95976,6 +95977,7 @@ async function stopRemoteCacheServer() {
|
|||
const logContent = fs.readFileSync(logPath, 'utf8')
|
||||
core.debug(`Remote cache server log:\n${logContent}`)
|
||||
}
|
||||
core.endGroup()
|
||||
}
|
||||
|
||||
async function saveCaches() {
|
||||
|
|
|
|||
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
2
post.js
2
post.js
|
|
@ -16,6 +16,7 @@ async function stopRemoteCacheServer() {
|
|||
return
|
||||
}
|
||||
|
||||
core.startGroup("Remote cache server")
|
||||
const pid = core.getState('remote-cache-server-pid')
|
||||
if (pid) {
|
||||
try {
|
||||
|
|
@ -31,6 +32,7 @@ async function stopRemoteCacheServer() {
|
|||
const logContent = fs.readFileSync(logPath, 'utf8')
|
||||
core.debug(`Remote cache server log:\n${logContent}`)
|
||||
}
|
||||
core.endGroup()
|
||||
}
|
||||
|
||||
async function saveCaches() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue