Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje committed May 31, 2024
1 parent c14694b commit 99b4749
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,32 +26,38 @@ jobs:
repository: bazelbuild/examples
sparse-checkout: java-maven
sparse-checkout-cone-mode: false

- 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 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
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

0 comments on commit 99b4749

Please sign in to comment.