53 lines
1.1 KiB
YAML
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
|