Skip to content

Commit 5909014

Browse files
committed
Include debug symbols in CI artifacts
Got a CI build that crashes but a local build doesn't refs #10
1 parent a26e276 commit 5909014

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,19 @@ jobs:
6767
working-directory: build
6868
run: |
6969
cmake --install . --config ${{matrix.build-type}} --prefix ${{runner.temp}}/install
70-
- name: Upload Artifacts
70+
cmake --install . --config ${{matrix.build-type}} --prefix ${{runner.temp}}/install-symbols --component DebugSymbols
71+
- name: Upload Executable Artifacts
7172
uses: actions/upload-artifact@v4
7273
if: ${{ matrix.build-type != 'Debug' && matrix.os-arch != 'Win64' }}
7374
with:
7475
name: "OpenXR-API-Layers-GUI-v${{steps.configure.outputs.version}}"
7576
path: ${{runner.temp}}/install
77+
- name: Upload Debug Symbol Artifacts
78+
uses: actions/upload-artifact@v4
79+
if: ${{ matrix.build-type != 'Debug' && matrix.os-arch != 'Win64' }}
80+
with:
81+
name: "OpenXR-API-Layers-GUI-v${{steps.configure.outputs.version}}-DebugSymbols"
82+
path: ${{runner.temp}}/install-symbols
7683
outputs:
7784
version: ${{steps.configure.outputs.version}}
7885
strategy:

src/CMakeLists.txt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,15 @@ sign_target(create-report)
189189
install(
190190
TARGETS create-report
191191
DESTINATION "."
192-
)
192+
)
193+
194+
if (WIN32)
195+
install(
196+
FILES
197+
"$<TARGET_PDB_FILE:create-report>"
198+
"$<TARGET_PDB_FILE:gui>"
199+
DESTINATION "."
200+
COMPONENT "DebugSymbols"
201+
EXCLUDE_FROM_ALL
202+
)
203+
endif()

0 commit comments

Comments
 (0)