-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
791f927
commit f18aee4
Showing
3 changed files
with
35 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Bazel build | ||
|
||
on: | ||
pull_request: | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
bazel-build: | ||
name: Build and run tests using Bazel | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{matrix.os}} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: '0' | ||
- name: Clone submodules | ||
run: git submodule update --init --recursive | ||
- name: Mount Bazel cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.bazel/cache | ||
key: bazel-cache-${{ runner.os }} | ||
- name: Build | ||
run: bazel --output_user_root=~/.bazel/cache build :all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters