This repository has been archived by the owner on Aug 24, 2023. It is now read-only.
Ak x archive telemetry sdk c #28
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
valgrind: | |
name: Valgrind examples | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install valgrind | |
- name: run tests | |
env: | |
NEW_RELIC_API_KEY: "replace with secret" | |
run: | | |
mkdir -p build | |
cd build | |
rm -rf * | |
cmake -DCMAKE_BUILD_TYPE=Debug \ | |
-DENABLE_TESTS=on \ | |
-DCMAKE_CXX_FLAGS="-Werror" \ | |
.. | |
make | |
make test | |
exit 0 | |
examples_win: | |
name: Examples Windows | |
runs-on: windows-2019 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: run tests | |
env: | |
NEW_RELIC_API_KEY: "replace with secret" | |
run: | | |
mkdir build | |
cd build | |
cmake -DENABLE_TESTS=1 ` | |
.. | |
$exit = $LASTEXITCODE | |
if ($exit -ne 0) { | |
exit $exit | |
} | |
cmake --build . | |
$exit = $LASTEXITCODE | |
if ($exit -ne 0) { | |
exit $exit | |
} | |
ctest -C Debug | |
$exit = $LASTEXITCODE | |
if ($exit -ne 0) { | |
exit $exit | |
} |