Skip to content

Commit 9262e73

Browse files
[#61] Also exclude .pdb files from release artifacts
Debug symbols are not needed for end users; anyone wanting to debug can compile their own debug builds.
1 parent 53ec9c1 commit 9262e73

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/.build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,20 @@ jobs:
5050
-p:UseAppHost=true
5151
-o publish/${{ matrix.os }}/${{ matrix.arch }}-${{ env.environment }}
5252
53-
- name: Remove platform-specific files (Windows)
53+
- name: Remove platform-specific and debug files (Windows)
5454
if: matrix.os == 'windows'
5555
run: |
5656
Remove-Item -Path "publish/${{ matrix.os }}/${{ matrix.arch }}-${{ env.environment }}/*.dylib" -Force -ErrorAction SilentlyContinue
5757
Remove-Item -Path "publish/${{ matrix.os }}/${{ matrix.arch }}-${{ env.environment }}/*.so" -Force -ErrorAction SilentlyContinue
58+
Remove-Item -Path "publish/${{ matrix.os }}/${{ matrix.arch }}-${{ env.environment }}/*.pdb" -Force -ErrorAction SilentlyContinue
5859
shell: pwsh
5960

60-
- name: Remove platform-specific files (macOS)
61+
- name: Remove platform-specific and debug files (macOS)
6162
if: matrix.os == 'macos'
6263
run: |
6364
rm -f publish/${{ matrix.os }}/${{ matrix.arch }}-${{ env.environment }}/UnityFileSystemApi.dll
6465
rm -f publish/${{ matrix.os }}/${{ matrix.arch }}-${{ env.environment }}/*.so
66+
rm -f publish/${{ matrix.os }}/${{ matrix.arch }}-${{ env.environment }}/*.pdb
6567
shell: bash
6668

6769
- name: Upload artifact

0 commit comments

Comments
 (0)