Skip to content

Commit aab3d30

Browse files
authored
valgrind.yml: use debuginfod-find instead of manually installing packages (danmar#4685)
1 parent b29f111 commit aab3d30

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

.github/workflows/valgrind.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,13 @@ jobs:
2020
with:
2121
key: ${{ github.workflow }}-${{ runner.os }}
2222

23-
- name: Prepare
24-
run: |
25-
sudo apt-get update
26-
sudo apt-get install debian-goodies ubuntu-dbgsym-keyring
27-
28-
- name: Add debug repos on ubuntu
29-
run: |
30-
echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ddebs.list
31-
echo "deb http://ddebs.ubuntu.com $(lsb_release -cs)-updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ddebs.list
32-
echo "deb http://ddebs.ubuntu.com $(lsb_release -cs)-proposed main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ddebs.list
33-
3423
- name: Install missing software
3524
run: |
3625
sudo apt-get update
3726
sudo apt-get install libxml2-utils
3827
sudo apt-get install valgrind
39-
sudo apt-get install libc6-dbg-amd64-cross
4028
sudo apt-get install libboost-container-dev
29+
sudo apt-get install debuginfod
4130
4231
- name: Build cppcheck
4332
run: |
@@ -53,6 +42,8 @@ jobs:
5342
run: |
5443
valgrind --error-limit=yes --leak-check=full --num-callers=50 --show-reachable=yes --track-origins=yes --suppressions=valgrind/testrunner.supp --gen-suppressions=all --log-fd=9 --error-exitcode=42 ./testrunner TestGarbage TestOther TestSimplifyTemplate 9>memcheck.log
5544
cat memcheck.log
45+
env:
46+
DEBUGINFOD_URLS: https://debuginfod.ubuntu.com
5647

5748
- uses: actions/upload-artifact@v3
5849
with:

0 commit comments

Comments
 (0)