Files
chaos/.gitea/workflows/ChaosCi.yaml
hashlag 4e89b2fb05
All checks were successful
Chaos Ci / test-and-benchmark (push) Successful in 2m20s
Run tests under valgrind's memcheck
2026-01-26 00:28:43 +03:00

36 lines
905 B
YAML

name: Chaos Ci
on: [push, pull_request]
jobs:
test-and-benchmark:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Install
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake valgrind
- name: Configure and build [Debug]
run: |
mkdir build-debug
cmake -S . -B build-debug/ -D CMAKE_BUILD_TYPE=Debug
cmake --build build-debug/
- name: Configure and build [Release]
run: |
mkdir build-release
cmake -S . -B build-release/ -D CMAKE_BUILD_TYPE=Release
cmake --build build-release/
- name: Run tests
run: valgrind --leak-check=full --track-origins=yes --show-leak-kinds=all ./build-debug/ChaosTests/ChaosTests
- name: Run benchmarks
run: ./build-release/ChaosBenches/ChaosBenches