Files
deskflow/.github/workflows/valgrind-analysis.yml
sithlord48 3ae2b3a571 build: rename old tests binary to legacytests
ci: run-tests action, split legacy and new unit tests into two steps
2025-05-12 13:48:21 +01:00

53 lines
1.1 KiB
YAML

name: "Valgrind Analysis"
on:
workflow_dispatch:
workflow_call:
jobs:
valgrind-analysis:
runs-on: ubuntu-latest
container: debian:trixie-slim
timeout-minutes: 10
steps:
- name: Install container dependencies
run: |
apt update -qqq > /dev/null
apt install -qqq git valgrind > /dev/null
- name: Fancy Checkout
uses: sithlord48/fancy-checkout@v1
- name: Install dependencies
uses: ./.github/actions/install-dependencies
with:
like: "debian"
- name: Configure
run: cmake -B build -G "Ninja"
- name: Build
run: cmake --build build -j8
- name: Valgrind unit tests
id: legacytests
uses: ./.github/actions/run-valgrind
with:
executable: ./build/bin/legacytests
- name: Set job summary
run: |
backticks='```'
message=$(cat <<EOF
## Valgrind summary
### legacytests Unit tests
$backticks
${{ steps.legacytests.outputs.summary }}
$backticks
EOF
)
echo "$message" >> $GITHUB_STEP_SUMMARY