Skip to content

Commit

Permalink
CI: keep debug symbols (.pdb), but upload them as a separate artifact (
Browse files Browse the repository at this point in the history
  • Loading branch information
miredirex authored Jan 13, 2025
1 parent 0cc4691 commit 8bd9b61
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/windows-playable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,12 @@ jobs:
cp -r Code/skyrim_ui/dist/UI str-build/SkyrimTogetherReborn
cp -r GameFiles/Skyrim/* str-build/
- name: Remove unnecessary build files
run: rm str-build/SkyrimTogetherReborn/*.pdb, str-build/SkyrimTogetherReborn/*.lib
- name: Remove unnecessary build files, keep .pdb
run: |
mkdir str-pdb
mv str-build/SkyrimTogetherReborn/SkyrimTogether.pdb, str-build/SkyrimTogetherReborn/SkyrimTogetherServer.pdb str-pdb
rm str-build/SkyrimTogetherReborn/*.pdb, str-build/SkyrimTogetherReborn/*.lib, str-build/SkyrimTogetherReborn/*.exp
rm str-build/SkyrimTogetherReborn/*Tests.exe
# Upload artifact

Expand All @@ -103,3 +107,9 @@ jobs:
with:
name: Skyrim Together Build (${{ env.STR_VERSION }})
path: str-build/

- name: Upload debug symbols
uses: actions/upload-artifact@v4
with:
name: Debug Symbols (${{ env.STR_VERSION }})
path: str-pdb/
1 change: 1 addition & 0 deletions Code/server_runner/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ local function build_runner()

set_kind("binary")
set_group("Server")
set_symbols("debug", "hidden")
add_includedirs(
".",
"../",
Expand Down

0 comments on commit 8bd9b61

Please sign in to comment.