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
|
- ubuntu
|
||||||
- windows
|
- windows
|
||||||
steps:
|
steps:
|
||||||
- run: rm $(which bazel)
|
- name: Checkout example
|
||||||
if: matrix.os != 'windows'
|
uses: actions/checkout@v4
|
||||||
- run: Remove-Item -Path (Get-Command bazel.exe).Source
|
|
||||||
if: matrix.os == 'windows'
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
with:
|
||||||
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: shopt -s dotglob && mv java-maven/* . && rmdir java-maven && ls -la
|
- run: shopt -s dotglob && mv java-maven/* . && rmdir java-maven && ls -la
|
||||||
if: matrix.os != 'windows'
|
if: matrix.os != 'windows'
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout setup-bazel
|
||||||
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: setup-bazel
|
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:
|
with:
|
||||||
bazelisk-cache: true
|
bazelisk-cache: true
|
||||||
bazelisk-version: 1.x
|
bazelisk-version: 1.x
|
||||||
|
|
@ -42,5 +54,6 @@ jobs:
|
||||||
repository-cache: true
|
repository-cache: true
|
||||||
- run: bazel build ...
|
- run: bazel build ...
|
||||||
- run: bazel test ...
|
- run: bazel test ...
|
||||||
- if: failure() && runner.debug == '1'
|
- name: Start SSH session
|
||||||
|
if: failure() && runner.debug == '1'
|
||||||
uses: mxschmitt/action-tmate@v3
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
core.startGroup("Remote cache server")
|
||||||
const pid = core.getState('remote-cache-server-pid')
|
const pid = core.getState('remote-cache-server-pid')
|
||||||
if (pid) {
|
if (pid) {
|
||||||
try {
|
try {
|
||||||
|
|
@ -95976,6 +95977,7 @@ async function stopRemoteCacheServer() {
|
||||||
const logContent = fs.readFileSync(logPath, 'utf8')
|
const logContent = fs.readFileSync(logPath, 'utf8')
|
||||||
core.debug(`Remote cache server log:\n${logContent}`)
|
core.debug(`Remote cache server log:\n${logContent}`)
|
||||||
}
|
}
|
||||||
|
core.endGroup()
|
||||||
}
|
}
|
||||||
|
|
||||||
async function saveCaches() {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
core.startGroup("Remote cache server")
|
||||||
const pid = core.getState('remote-cache-server-pid')
|
const pid = core.getState('remote-cache-server-pid')
|
||||||
if (pid) {
|
if (pid) {
|
||||||
try {
|
try {
|
||||||
|
|
@ -31,6 +32,7 @@ async function stopRemoteCacheServer() {
|
||||||
const logContent = fs.readFileSync(logPath, 'utf8')
|
const logContent = fs.readFileSync(logPath, 'utf8')
|
||||||
core.debug(`Remote cache server log:\n${logContent}`)
|
core.debug(`Remote cache server log:\n${logContent}`)
|
||||||
}
|
}
|
||||||
|
core.endGroup()
|
||||||
}
|
}
|
||||||
|
|
||||||
async function saveCaches() {
|
async function saveCaches() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue