When we want to use the base runners they do not have git Install devscripts for debian images that will make packages
63 lines
1.4 KiB
YAML
63 lines
1.4 KiB
YAML
name: "Valgrind Analysis"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
valgrind-analysis:
|
|
runs-on: ubuntu-latest
|
|
container: deskflow/deskflow:debian-13-amd64
|
|
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.0.0
|
|
|
|
- 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: unittests
|
|
uses: ./.github/actions/run-valgrind
|
|
with:
|
|
executable: ./build/bin/unittests
|
|
|
|
- name: Valgrind integration tests
|
|
id: integtests
|
|
uses: ./.github/actions/run-valgrind
|
|
with:
|
|
executable: ./build/bin/integtests
|
|
|
|
- name: Set job summary
|
|
run: |
|
|
backticks='```'
|
|
message=$(cat <<EOF
|
|
## Valgrind summary
|
|
|
|
### Unit tests
|
|
$backticks
|
|
${{ steps.unittests.outputs.summary }}
|
|
$backticks
|
|
|
|
### Integration tests
|
|
$backticks
|
|
${{ steps.integtests.outputs.summary }}
|
|
$backticks
|
|
EOF
|
|
)
|
|
|
|
echo "$message" >> $GITHUB_STEP_SUMMARY
|