more
This commit is contained in:
parent
c14694b7be
commit
99b4749ac7
1 changed files with 6 additions and 0 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
|
@ -26,10 +26,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
|
||||||
|
|
||||||
- name: Checkout setup-bazel
|
- name: Checkout setup-bazel
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: setup-bazel
|
path: setup-bazel
|
||||||
|
|
||||||
- name: Prepare environment (POSIX)
|
- name: Prepare environment (POSIX)
|
||||||
if: matrix.os != 'windows'
|
if: matrix.os != 'windows'
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -37,12 +39,14 @@ jobs:
|
||||||
shopt -s dotglob
|
shopt -s dotglob
|
||||||
mv java-maven/* .
|
mv java-maven/* .
|
||||||
rmdir java-maven
|
rmdir java-maven
|
||||||
|
|
||||||
- name: Prepare environment (Windows)
|
- name: Prepare environment (Windows)
|
||||||
if: matrix.os == 'windows'
|
if: matrix.os == 'windows'
|
||||||
run: |
|
run: |
|
||||||
Remove-Item -Path (Get-Command bazel.exe).Source
|
Remove-Item -Path (Get-Command bazel.exe).Source
|
||||||
Get-ChildItem -Path java-maven -Recurse -File | Move-Item -Destination .
|
Get-ChildItem -Path java-maven -Recurse -File | Move-Item -Destination .
|
||||||
Remove-Item -Path java-maven
|
Remove-Item -Path java-maven
|
||||||
|
|
||||||
- name: Setup Bazel
|
- name: Setup Bazel
|
||||||
uses: ./setup-bazel/
|
uses: ./setup-bazel/
|
||||||
with:
|
with:
|
||||||
|
|
@ -50,8 +54,10 @@ jobs:
|
||||||
bazelisk-version: 1.x
|
bazelisk-version: 1.x
|
||||||
remote-cache: true
|
remote-cache: true
|
||||||
repository-cache: true
|
repository-cache: true
|
||||||
|
|
||||||
- run: bazel build ...
|
- run: bazel build ...
|
||||||
- run: bazel test ...
|
- run: bazel test ...
|
||||||
|
|
||||||
- name: Start SSH session
|
- name: Start SSH session
|
||||||
if: failure() && runner.debug == '1'
|
if: failure() && runner.debug == '1'
|
||||||
uses: mxschmitt/action-tmate@v3
|
uses: mxschmitt/action-tmate@v3
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue