2020-12-22 11:47:52 +00:00
|
|
|
name: bazel
|
|
|
|
|
|
|
|
on:
|
|
|
|
push: {}
|
|
|
|
pull_request: {}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-and-test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
2021-04-19 09:51:12 +00:00
|
|
|
- name: mount bazel cache
|
|
|
|
uses: actions/cache@v2.0.0
|
|
|
|
env:
|
|
|
|
cache-name: bazel-cache
|
|
|
|
with:
|
|
|
|
path: "~/.cache/bazel"
|
|
|
|
key: ${{ env.cache-name }}-${{ runner.os }}-${{ github.ref }}
|
|
|
|
restore-keys: |
|
2021-06-01 10:01:49 +00:00
|
|
|
${{ env.cache-name }}-${{ runner.os }}-main
|
2020-12-22 11:47:52 +00:00
|
|
|
|
2021-04-19 09:51:12 +00:00
|
|
|
- name: build
|
|
|
|
run: |
|
|
|
|
bazel build //:benchmark //:benchmark_main //test/...
|
2021-04-26 17:26:33 +00:00
|
|
|
|
2021-04-19 09:51:12 +00:00
|
|
|
- name: test
|
|
|
|
run: |
|
2021-04-26 17:26:33 +00:00
|
|
|
bazel test --test_output=all //test/...
|