feat: use single random engine per thread and provide ability to set seed #447
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: bazel | |
on: | |
push: | |
branches: | |
- 'main' | |
paths-ignore: | |
- 'docs/**' | |
- '**/*.md' | |
- 'LICENSE' | |
workflow_dispatch: | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- '**/*.md' | |
- 'LICENSE' | |
jobs: | |
bazel: | |
name: ci-ubuntu-24.04-gcc-bazel | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install ccache | |
uses: hendrikmuhs/ccache-action@v1.2 | |
- name: Cache Bazel | |
id: cache-bazel | |
uses: actions/cache@v4.0.2 | |
env: | |
cache-name: cache-bazel-data | |
with: | |
path: /home/runner/.cache/bazel/_bazel_runner | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('MODULE.bazel') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Build faker-cxx library | |
run: bazel build //:faker-cxx --enable_workspace | |
- name: Build and run faker-cxx tests | |
run: | | |
bazel build //tests:faker-cxx-ut --enable_workspace | |
bazel-bin/tests/faker-cxx-ut |