From 779b2eb5e2c3b7e4c575760f8efbbb69a149ea1f Mon Sep 17 00:00:00 2001 From: status102 <102887808+status102@users.noreply.github.com> Date: Fri, 28 Nov 2025 23:37:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=8B=E7=BC=A9win=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E7=9A=84pdb=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 7 +++++-- .github/workflows/release-nightly-ota.yml | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 52f4469866..ebc6b96ed1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -178,18 +178,21 @@ jobs: dotnet publish src/MaaWpfGui/MaaWpfGui.csproj -c Release -p:Platform=${{ matrix.arch == 'arm64' && 'ARM64' || 'x64' }} -o install - name: Collect PDB files - run: cp build/bin/RelWithDebInfo/*.pdb install/ + run: | + cp build/bin/RelWithDebInfo/*.pdb install/ + Compress-Archive -Path install/*.pdb -DestinationPath install/MAAComponent-DebugSymbol-${{ needs.meta.outputs.tag }}-win-${{ matrix.arch }}.zip continue-on-error: true - name: Upload PDB files uses: actions/upload-artifact@v5 with: name: MAAComponent-DebugSymbol-win-${{ matrix.arch }} - path: install/*.pdb + path: install/MAAComponent-DebugSymbol-${{ needs.meta.outputs.tag }}-win-${{ matrix.arch }}.zip - name: Organize install files shell: bash run: | + rm -rf install/MAAComponent-DebugSymbol-*.zip rm -rf install/*.pdb rm -rf install/msvc-debug rm -rf install/*.h diff --git a/.github/workflows/release-nightly-ota.yml b/.github/workflows/release-nightly-ota.yml index 9f5a198e5a..d8fee793e9 100644 --- a/.github/workflows/release-nightly-ota.yml +++ b/.github/workflows/release-nightly-ota.yml @@ -236,18 +236,21 @@ jobs: dotnet publish src/MaaWpfGui/MaaWpfGui.csproj -c Release -o install - name: Collect PDB files - run: cp build/bin/RelWithDebInfo/*.pdb install/ + run: | + cp build/bin/RelWithDebInfo/*.pdb install/ + Compress-Archive -Path install/*.pdb -DestinationPath install/MAAComponent-DebugSymbol-${{ steps.set_tag.outputs.tag }}-win-${{ matrix.arch }}.zip continue-on-error: true - name: Upload PDB files uses: actions/upload-artifact@v5 with: name: MAAComponent-DebugSymbol-win-${{ matrix.arch }} - path: install/*.pdb + path: install/MAAComponent-DebugSymbol-${{ steps.set_tag.outputs.tag }}-win-${{ matrix.arch }}.zip - name: Organize install files shell: bash run: | + rm -rf install/MAAComponent-DebugSymbol-*.zip rm -rf install/*.pdb rm -rf install/msvc-debug rm -rf install/*.h