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