From 3dccd70f0d5582ea9bb6e4f1205104ea083ebc71 Mon Sep 17 00:00:00 2001 From: bitsandfoxes Date: Thu, 22 Oct 2026 20:53:53 +0200 Subject: [PATCH 1/2] Drop cached GameAssembly link outputs in Windows test builds --- .github/workflows/test-build-windows-x86.yml | 4 ++++ .github/workflows/test-build-windows.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/test-build-windows-x86.yml b/.github/workflows/test-build-windows-x86.yml index 94513f524..8e77ade20 100644 --- a/.github/workflows/test-build-windows-x86.yml +++ b/.github/workflows/test-build-windows-x86.yml @@ -50,6 +50,10 @@ jobs: restore-keys: | it-library-windows-x86-${{ env.UNITY_VERSION }}- + # A reused PDB keeps its GUID, so builds from the same cache would upload symbols under colliding debug IDs. + - name: Remove cached GameAssembly link outputs + run: Get-ChildItem samples/IntegrationTest/Library/Bee -Recurse -Include GameAssembly.dll,GameAssembly.pdb,GameAssembly.ilk -ErrorAction SilentlyContinue | Remove-Item -Force + - name: Download UPM package uses: ./.github/actions/wait-for-artifact with: diff --git a/.github/workflows/test-build-windows.yml b/.github/workflows/test-build-windows.yml index 611816ae9..22df1da67 100644 --- a/.github/workflows/test-build-windows.yml +++ b/.github/workflows/test-build-windows.yml @@ -50,6 +50,10 @@ jobs: restore-keys: | it-library-windows-${{ env.UNITY_VERSION }}- + # A reused PDB keeps its GUID, so builds from the same cache would upload symbols under colliding debug IDs. + - name: Remove cached GameAssembly link outputs + run: Get-ChildItem samples/IntegrationTest/Library/Bee -Recurse -Include GameAssembly.dll,GameAssembly.pdb,GameAssembly.ilk -ErrorAction SilentlyContinue | Remove-Item -Force + - name: Restore cached build without Sentry id: cache-build-nosentry uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 From 8615710be8f5ecf659f4c58df1ae514906fc3f37 Mon Sep 17 00:00:00 2001 From: bitsandfoxes Date: Fri, 23 Oct 2026 11:52:36 +0200 Subject: [PATCH 2/2] Remove GameAssembly link outputs before saving the Library cache instead of after restoring --- .github/workflows/test-build-windows-x86.yml | 9 +++++---- .github/workflows/test-build-windows.yml | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test-build-windows-x86.yml b/.github/workflows/test-build-windows-x86.yml index 8e77ade20..5f57221c0 100644 --- a/.github/workflows/test-build-windows-x86.yml +++ b/.github/workflows/test-build-windows-x86.yml @@ -50,10 +50,6 @@ jobs: restore-keys: | it-library-windows-x86-${{ env.UNITY_VERSION }}- - # A reused PDB keeps its GUID, so builds from the same cache would upload symbols under colliding debug IDs. - - name: Remove cached GameAssembly link outputs - run: Get-ChildItem samples/IntegrationTest/Library/Bee -Recurse -Include GameAssembly.dll,GameAssembly.pdb,GameAssembly.ilk -ErrorAction SilentlyContinue | Remove-Item -Force - - name: Download UPM package uses: ./.github/actions/wait-for-artifact with: @@ -112,6 +108,11 @@ jobs: path: test-app-desktop.tar.gz retention-days: 14 + # A reused PDB keeps its GUID, so builds from the same cache would upload symbols under colliding debug IDs. + - name: Remove GameAssembly link outputs before caching + if: github.ref == 'refs/heads/main' + run: Get-ChildItem samples/IntegrationTest/Library/Bee -Recurse -Include GameAssembly.dll,GameAssembly.pdb,GameAssembly.ilk -ErrorAction SilentlyContinue | Remove-Item -Force + - name: Save Unity Library cache if: github.ref == 'refs/heads/main' uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 diff --git a/.github/workflows/test-build-windows.yml b/.github/workflows/test-build-windows.yml index 22df1da67..bf3a6cf2e 100644 --- a/.github/workflows/test-build-windows.yml +++ b/.github/workflows/test-build-windows.yml @@ -50,10 +50,6 @@ jobs: restore-keys: | it-library-windows-${{ env.UNITY_VERSION }}- - # A reused PDB keeps its GUID, so builds from the same cache would upload symbols under colliding debug IDs. - - name: Remove cached GameAssembly link outputs - run: Get-ChildItem samples/IntegrationTest/Library/Bee -Recurse -Include GameAssembly.dll,GameAssembly.pdb,GameAssembly.ilk -ErrorAction SilentlyContinue | Remove-Item -Force - - name: Restore cached build without Sentry id: cache-build-nosentry uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 @@ -160,6 +156,11 @@ jobs: path: test-app-desktop.tar.gz retention-days: 14 + # A reused PDB keeps its GUID, so builds from the same cache would upload symbols under colliding debug IDs. + - name: Remove GameAssembly link outputs before caching + if: github.ref == 'refs/heads/main' + run: Get-ChildItem samples/IntegrationTest/Library/Bee -Recurse -Include GameAssembly.dll,GameAssembly.pdb,GameAssembly.ilk -ErrorAction SilentlyContinue | Remove-Item -Force + - name: Save Unity Library cache if: github.ref == 'refs/heads/main' uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5