mirror of
https://github.com/google/benchmark.git
synced 2025-02-07 09:40:17 +08:00
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
This commit is contained in:
parent
39b5a298a7
commit
2dad9aef78
33
.github/workflows/bazel.yml
vendored
33
.github/workflows/bazel.yml
vendored
@ -11,23 +11,20 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
# - name: mount bazel cache
|
- name: mount bazel cache
|
||||||
# uses: actions/cache@v1
|
uses: actions/cache@v2.0.0
|
||||||
# with:
|
env:
|
||||||
# path: "/home/runner/.cache/bazel"
|
cache-name: bazel-cache
|
||||||
# key: bazel
|
with:
|
||||||
|
path: "~/.cache/bazel"
|
||||||
|
key: ${{ env.cache-name }}-${{ runner.os }}-${{ github.ref }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ env.cache-name }}-${{ runner.os }}-master
|
||||||
|
|
||||||
# - name: install bazelisk
|
- name: build
|
||||||
# run: |
|
run: |
|
||||||
# curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.1.0/bazelisk-linux-amd64"
|
bazel build //:benchmark //:benchmark_main //test/...
|
||||||
# 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: test
|
- name: test
|
||||||
# run: |
|
run: |
|
||||||
# "${GITHUB_WORKSPACE}/bin/bazel" test //test/...
|
bazel test --test_output=errors //test/...
|
||||||
|
Loading…
Reference in New Issue
Block a user