Skip to content

Add Bazel unit test target and Windows (MSVC) support #11

Add Bazel unit test target and Windows (MSVC) support

Add Bazel unit test target and Windows (MSVC) support #11

Workflow file for this run

name: Bazel
on:
schedule:
- cron: '0 0 * * 1'
push:
branches: [ '*' ]
pull_request:
branches: [ master ]
release:
types:
- published
- prereleased
permissions:
contents: read
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, macos-latest]
tls: [boringssl, openssl, 'no']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 100
fetch-tags: true
- name: Setup Bazel
uses: bazel-contrib/setup-bazel@0.15.0
with:
bazelisk-cache: true
disk-cache: true
repository-cache: true
- name: Build project
run: bazel build //... --@clickhouse_cpp//:tls=${{ matrix.tls }}
- name: Run unit tests
run: bazel test //ut:unit_tests --@clickhouse_cpp//:tls=${{ matrix.tls }} --test_output=errors