From 7045a0a142f66906f521ee9793c3eefb3bb65be5 Mon Sep 17 00:00:00 2001 From: Leo Parente <23251360+leoparente@users.noreply.github.com> Date: Mon, 18 May 2026 15:44:42 -0300 Subject: [PATCH] ci: scope conan cache key by build type in build_debug.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Debug workflow shared a conan cache key with the Release build (`conan-${{ runner.os }}-amd64-`). Only one job saves a given key, and the permissive `restore-keys` fallback let Debug pull in a Release- populated cache that doesn't contain its debug-built dependencies — so every Debug run rebuilt deps from source. Tag the Debug cache key (and matching restore-keys) with `-debug-` so the two builds maintain independent caches. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/build_debug.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_debug.yml b/.github/workflows/build_debug.yml index 5ec4248a5..ad809dd7e 100644 --- a/.github/workflows/build_debug.yml +++ b/.github/workflows/build_debug.yml @@ -34,8 +34,8 @@ jobs: uses: actions/cache@v5 with: path: ${{github.workspace}}/build/p/ - key: conan-${{ runner.os }}-amd64-${{ hashFiles('conanfile.py', '*/conanfile.py') }} - restore-keys: conan-${{ runner.os }}-amd64- + key: conan-${{ runner.os }}-amd64-debug-${{ hashFiles('conanfile.py', '*/conanfile.py') }} + restore-keys: conan-${{ runner.os }}-amd64-debug- - name: linux package install run: | @@ -95,8 +95,8 @@ jobs: uses: actions/cache@v5 with: path: ${{github.workspace}}/build/p/ - key: conan-${{ runner.os }}-amd64-${{ hashFiles('conanfile.py', '*/conanfile.py') }} - restore-keys: conan-${{ runner.os }}-amd64- + key: conan-${{ runner.os }}-amd64-debug-${{ hashFiles('conanfile.py', '*/conanfile.py') }} + restore-keys: conan-${{ runner.os }}-amd64-debug- - name: Build pktvisord + push symbol to backtrace.io uses: ./.github/actions/build-cpp