From aab3d30e4caafe0c188bda50d005f030f2229843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Sat, 7 Jan 2023 23:31:22 +0100 Subject: [PATCH] valgrind.yml: use `debuginfod-find` instead of manually installing packages (#4685) --- .github/workflows/valgrind.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/valgrind.yml b/.github/workflows/valgrind.yml index 5fcb1a430..50ce5cb01 100644 --- a/.github/workflows/valgrind.yml +++ b/.github/workflows/valgrind.yml @@ -20,24 +20,13 @@ jobs: with: key: ${{ github.workflow }}-${{ runner.os }} - - name: Prepare - run: | - sudo apt-get update - sudo apt-get install debian-goodies ubuntu-dbgsym-keyring - - - name: Add debug repos on ubuntu - run: | - echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ddebs.list - echo "deb http://ddebs.ubuntu.com $(lsb_release -cs)-updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ddebs.list - echo "deb http://ddebs.ubuntu.com $(lsb_release -cs)-proposed main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ddebs.list - - name: Install missing software run: | sudo apt-get update sudo apt-get install libxml2-utils sudo apt-get install valgrind - sudo apt-get install libc6-dbg-amd64-cross sudo apt-get install libboost-container-dev + sudo apt-get install debuginfod - name: Build cppcheck run: | @@ -53,6 +42,8 @@ jobs: run: | 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 cat memcheck.log + env: + DEBUGINFOD_URLS: https://debuginfod.ubuntu.com - uses: actions/upload-artifact@v3 with: