Skip to content

Commit

Permalink
Re-enable bazel without bazelisk and with scoped build/test targets (#…
Browse files Browse the repository at this point in the history
…1109)

* See if bazel "just works" now (almost)

* Add cache and better bazel test command line

* Narrow focus of bazel build
  • Loading branch information
dominichamon authored Apr 19, 2021
1 parent 39b5a29 commit 2dad9ae
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/...

0 comments on commit 2dad9ae

Please sign in to comment.