Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions .github/workflows/bazel-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
include:
- os: macOS-latest
bazel_args: "--cxxopt=-std=c++17"
- os: ubuntu-latest
bazel_args: "--cxxopt=-std=c++17"
- os: windows-latest
bazel_args: "--cxxopt=/std:c++17"
steps:
- name: Checkout source
uses: actions/checkout@v4
Expand All @@ -20,29 +27,24 @@ jobs:
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
if: runner.os != 'macOS'
run: bazel build --config=ssl //...
run: bazel build ${{ matrix.bazel_args }} --config=ssl //...

- name: Test with SSL
if: runner.os != 'macOS'
run: bazel test --config=ssl --test_output=all //...
run: bazel test ${{ matrix.bazel_args }} --config=ssl --test_output=all //...

- name: Build
run: bazel build //...
run: bazel build ${{ matrix.bazel_args }} //...

- name: Test
run: bazel test --test_output=all //...
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
if: runner.os == 'macOS'
run: bazel test ${{ matrix.bazel_args }} --test_output=all //pull/tests/integration:scrape-test
10 changes: 0 additions & 10 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
package(default_visibility = ["//visibility:public"])

config_setting(
name = "windows",
values = {"cpu": "x64_windows"},
)

config_setting(
name = "windows_msvc",
values = {"cpu": "x64_windows_msvc"},
)
21 changes: 13 additions & 8 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ module(
repo_name = "com_github_jupp0r_prometheus_cpp",
)

bazel_dep(name = "boringssl", version = "0.20241024.0")
bazel_dep(name = "civetweb", version = "1.16")
bazel_dep(name = "curl", version = "8.8.0.bcr.1")
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "rules_cc", version = "0.0.13")
bazel_dep(name = "zlib", version = "1.3.1.bcr.3")
bazel_dep(name = "boringssl", version = "0.20250311.0")
bazel_dep(name = "civetweb", version = "1.16.bcr.1")
bazel_dep(name = "curl", version = "8.8.0.bcr.3")
bazel_dep(name = "platforms", version = "0.0.11")
bazel_dep(name = "rules_cc", version = "0.1.1")
bazel_dep(name = "zlib", version = "1.3.1.bcr.5")

bazel_dep(name = "google_benchmark", version = "1.8.5", dev_dependency = True)
bazel_dep(name = "googletest", version = "1.15.2", dev_dependency = True)
bazel_dep(name = "google_benchmark", version = "1.9.1", dev_dependency = True)
bazel_dep(name = "googletest", version = "1.16.0", dev_dependency = True)

# due to
# https://github.com/bazelbuild/bazel/issues/24426
# https://github.com/bazelbuild/bazel-central-registry/pull/3320
bazel_dep(name = "re2", version = "2024-07-02.bcr.1")
Loading
Loading