mirror of
https://github.com/google/benchmark.git
synced 2024-12-01 07:16:07 +00:00
2365c4a603
* add multiple OSes to bazel workflow * correct indent * only set copts when they're supported by the OS * os check should work * pull out cxx03_test for per-platform stuff * attempt to fix windows test output
36 lines
746 B
YAML
36 lines
746 B
YAML
name: bazel
|
|
|
|
on:
|
|
push: {}
|
|
pull_request: {}
|
|
|
|
jobs:
|
|
job:
|
|
name: bazel.${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-2022]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: mount bazel cache
|
|
uses: actions/cache@v2.0.0
|
|
env:
|
|
cache-name: bazel-cache
|
|
with:
|
|
path: "~/.cache/bazel"
|
|
key: ${{ env.cache-name }}-${{ matrix.os }}-${{ github.ref }}
|
|
restore-keys: |
|
|
${{ env.cache-name }}-${{ matrix.os }}-main
|
|
|
|
- name: build
|
|
run: |
|
|
bazel build //:benchmark //:benchmark_main //test/...
|
|
|
|
- name: test
|
|
run: |
|
|
bazel test --test_output=all //test/...
|