Disables testing when building documentation #70
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
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Check for memory leaks | |
runs-on: ubuntu-latest | |
steps: | |
- run: sudo apt install check | |
name: Install "Check" | |
- run: sudo apt install valgrind | |
name: Install valgrind | |
- uses: actions/checkout@v4 | |
- name: Configure | |
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug | |
- name: Build | |
run: cmake --build build | |
- name: Run memcheck | |
run: | | |
ctest \ | |
--overwrite MemoryCheckCommandOptions="--leak-check=full --show-leak-kinds=all" \ | |
-T memcheck --test-dir build | |
env: | |
CK_FORK: 'no' | |
- name: Upload memcheck logs | |
uses: actions/upload-artifact@v4 | |
with: | |
name: memcheck-logs | |
path: build/Testing/Temporary/MemoryChecker.*.log |