-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-enable bazel without bazelisk and with scoped build/test targets (#…
…1109) * See if bazel "just works" now (almost) * Add cache and better bazel test command line * Narrow focus of bazel build
- Loading branch information
1 parent
39b5a29
commit 2dad9ae
Showing
1 changed file
with
15 additions
and
18 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 |
---|---|---|
|
@@ -11,23 +11,20 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
# - name: mount bazel cache | ||
# uses: actions/cache@v1 | ||
# with: | ||
# path: "/home/runner/.cache/bazel" | ||
# key: bazel | ||
- name: mount bazel cache | ||
uses: actions/[email protected] | ||
env: | ||
cache-name: bazel-cache | ||
with: | ||
path: "~/.cache/bazel" | ||
key: ${{ env.cache-name }}-${{ runner.os }}-${{ github.ref }} | ||
restore-keys: | | ||
${{ env.cache-name }}-${{ runner.os }}-master | ||
# - name: install bazelisk | ||
# run: | | ||
# curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.1.0/bazelisk-linux-amd64" | ||
# mkdir -p "${GITHUB_WORKSPACE}/bin/" | ||
# mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel" | ||
# chmod +x "${GITHUB_WORKSPACE}/bin/bazel" | ||
|
||
# - name: build | ||
# run: | | ||
# "${GITHUB_WORKSPACE}/bin/bazel" build //... | ||
- name: build | ||
run: | | ||
bazel build //:benchmark //:benchmark_main //test/... | ||
# - name: test | ||
# run: | | ||
# "${GITHUB_WORKSPACE}/bin/bazel" test //test/... | ||
- name: test | ||
run: | | ||
bazel test --test_output=errors //test/... |