-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Switched to vcpkg, disabled Prometheus Push Gateway for now * CMake fix on Linux * Added vcpkg stuff in workflow * Moved vcpkg toolchain to all presets * Explicitly call vpckg install in Linux * Try another variant as well * Syntax fix * Fix case * Fix & reformat workflows * Fix integration test * Remove unneeded variable
- Loading branch information
1 parent
cca3c62
commit 564799f
Showing
18 changed files
with
154 additions
and
173 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,36 @@ | ||
name: Integration | ||
name: Integration | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
branches: ["main"] | ||
pull_request: | ||
branches: [ "main" ] | ||
branches: ["main"] | ||
|
||
jobs: | ||
build: | ||
name: Integration test | ||
|
||
runs-on: ubuntu-latest | ||
|
||
services: | ||
pushgateway: | ||
image: prom/pushgateway:latest | ||
ports: | ||
ports: | ||
- "9091:9091" | ||
statsd: | ||
image: prom/statsd-exporter:latest | ||
ports: | ||
ports: | ||
- "9125:9125/udp" | ||
- "9125:9125/tcp" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: cmake --preset linux-x64-debug | ||
- run: cmake --build --preset linux-x64-debug --target integration-test | ||
- run: out/build/linux-x64-debug/integration-test statsd+tcp://localhost:9125 | ||
- run: out/build/linux-x64-debug/integration-test statsd+udp://localhost:9125 | ||
- run: out/build/linux-x64-debug/integration-test pushgateway+http://localhost:9091/metrics/job/test_job/instance/test_instance | ||
- uses: actions/checkout@v4 | ||
- uses: lukka/get-cmake@latest | ||
- uses: lukka/run-vcpkg@v11 | ||
with: | ||
runVcpkgInstall: true | ||
- run: cmake --preset linux-x64-debug | ||
- run: cmake --build --preset linux-x64-debug --target integration-test | ||
- run: out/build/linux-x64-debug/integration-test statsd+tcp://localhost:9125 | ||
- run: out/build/linux-x64-debug/integration-test statsd+udp://localhost:9125 | ||
- run: out/build/linux-x64-debug/integration-test pushgateway+http://localhost:9091/metrics/job/test_job/instance/test_instance |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,4 @@ | |
build/ | ||
out/ | ||
.vs/ | ||
vcpkg_installed |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,4 @@ | ||
include(FetchContent) | ||
|
||
message(STATUS "Cloning Google Benchmark") | ||
set(BENCHMARK_ENABLE_TESTING NO) | ||
FetchContent_Declare( | ||
googlebenchmark | ||
GIT_REPOSITORY https://github.com/google/benchmark.git | ||
GIT_TAG v1.8.4 | ||
) | ||
FetchContent_MakeAvailable(googlebenchmark) | ||
|
||
find_package(benchmark CONFIG REQUIRED) | ||
add_executable(metrics_benchmark benchmarks.cpp) | ||
target_link_libraries(metrics_benchmark PUBLIC METRICS::lib benchmark::benchmark) |
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
This file was deleted.
Oops, something went wrong.
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
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
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
Oops, something went wrong.