Skip to content

ci: update GitHub Actions #23

ci: update GitHub Actions

ci: update GitHub Actions #23

Workflow file for this run

name: Valgrind
on:
push:
branches:
- main
- develop
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Setup
run: |
sudo apt update
sudo apt-get install build-essential automake autoconf autoconf-archive texinfo libtool-bin yasm ninja-build ccache valgrind
- name: Setup GCC
uses: pkgxdev/setup@v1
with:
+: gcc@13
- run: gcc --version
- name: Restore artifacts or setup vcpkg
uses: lukka/run-vcpkg@v11
with:
vcpkgGitCommitId: ${{ vars.VCPKG_GIT_COMMIT_ID }}
- name: Configure
run: cmake --preset=valgrind
- name: Build
run: cmake --build build -j 2
- name: Run memcheck
working-directory: build
continue-on-error: true
run: |
ctest -VV -T memcheck --verbose
- name: Run Valgrind on initialize
working-directory: build/src
continue-on-error: true
run: valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose ./initialize --s -n32000 -t11 -o
- name: Run Valgrind on cdt-opt
working-directory: build/src
continue-on-error: true
run: valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose ./cdt-opt
- name: Run Valgrind on cdt
working-directory: build/src
continue-on-error: true
run: valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose ./cdt --s -n64 -t3 -a.6 -k1.1 -l.1 -p10