Skip to content

build(bazel): use Bazel module for google_benchmark #525

build(bazel): use Bazel module for google_benchmark

build(bazel): use Bazel module for google_benchmark #525

Workflow file for this run

name: Bazel CI
on: [push, pull_request]
jobs:
build:
name: Bazel on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Generate German locale on Ubuntu
if: runner.os == 'Linux'
run: |
sudo apt-get remove -y --purge man-db # avoid time-consuming trigger
sudo apt-get update
sudo apt-get install -y locales
sudo locale-gen de_DE.UTF-8 # used by SerializerTest
- name: Install telegraf on Ubuntu
if: runner.os == 'Linux'
run: |
sudo apt-get install -y telegraf
- name: Install telegraf on macOS
if: runner.os == 'macOS'
run: brew install telegraf
- name: Build with SSL
run: bazel build --config=ssl ${{ matrix.bazel_args }} //...
- name: Test with SSL
run: bazel test --config=ssl ${{ matrix.bazel_args }} --test_output=all //...
- name: Build with SSL and bzlmod
run: bazel build --enable_bzlmod --config=ssl ${{ matrix.bazel_args }} //...
- name: Build
run: bazel build //...
- name: Test
run: bazel test ${{ matrix.bazel_args }} --test_output=all //...
- name: Scraping Test
if: runner.os != 'Windows'
run: bazel test --test_output=all //pull/tests/integration:scrape-test
- name: Benchmark
run: bazel run -c opt //core/benchmarks