* Use Deskflow Name * Remove business-oriented options from issue templates * Remove business-oriented workflow * Bump version to 3.0.0 (to avoid confusion with previously used version numbers 1.x & 2.x) * Update readme to reflect new project name and goals * Found some more "synergy" to rename * Rename `synlib` to `app` * Rename `syntool` to `deskflow-legacy` * Rename `synwinhk` to `dfwhook` * Rename dirs from synergy to deskflow * Rename more "Synergy" files * Rename app bundle ID * Fixed copyright typo * Rename only title in serial key dialog (to be moved downstream later) * Preserve original serial key window for moving downstream * Restore dialogs ready for moving downstream * Rename `QDeskflowApplication` to `DeskflowApplication` (the Q is confusing) * Restore Volker's original project name * Fixed mimetype * Fixed weird grammar * Fixed (more) weird grammar * Broken link, restoring (but we should move all links out of source) * Broken link, restoring (but we should move all links out of source) * Add write permission to valgrind-analysis.yml * Restore AUR conflicts * Apply Clang format * Update ChangeLog * Back out version change --------- Co-authored-by: Nick Bolton <nick@symless.com>
86 lines
2.2 KiB
YAML
86 lines
2.2 KiB
YAML
name: "Valgrind Analysis"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- reopened
|
|
- synchronize
|
|
- ready_for_review
|
|
|
|
jobs:
|
|
valgrind-analysis:
|
|
runs-on: ubuntu-latest
|
|
container: deskflow/deskflow:ubuntu-22.04-amd64
|
|
timeout-minutes: 10
|
|
|
|
permissions:
|
|
pull-requests: write
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Config Git safe dir
|
|
run: git config --global --add safe.directory $GITHUB_WORKSPACE
|
|
|
|
# Should only restore the .venv directory from cache.
|
|
- name: Init Python venv
|
|
uses: ./.github/actions/init-python
|
|
with:
|
|
cache-key: "valgrind"
|
|
setup: false
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
./scripts/install_deps.py &&
|
|
apt install valgrind -y
|
|
env:
|
|
# Prevent apt prompting for input.
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
- name: Configure
|
|
run: cmake -B build --preset=linux-release
|
|
|
|
- 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: Get workflow URL
|
|
id: workflow-url
|
|
run: |
|
|
repo_url="${{ github.server_url }}/${{ github.repository }}"
|
|
echo "url=$repo_url/actions/runs/${{ github.run_id }}" >> $GITHUB_OUTPUT
|
|
shell: bash
|
|
|
|
- name: Append to PR comment
|
|
uses: marocchino/sticky-pull-request-comment@v2
|
|
if: github.event.pull_request.head.repo.full_name == github.repository
|
|
with:
|
|
recreate: true
|
|
header: valgrind
|
|
message: |
|
|
## Valgrind summary
|
|
See [workflow run](${{ steps.workflow-url.outputs.url }}) for full `valgrind` output.
|
|
|
|
### Unit tests
|
|
```
|
|
${{ steps.unittests.outputs.summary }}
|
|
```
|
|
|
|
### Integration tests
|
|
```
|
|
${{ steps.integtests.outputs.summary }}
|
|
```
|