Skip to content

Commit

Permalink
Merge pull request #999 from alphanin9/generate-pdb-for-artifacts
Browse files Browse the repository at this point in the history
PDB generation for the release artifacts
  • Loading branch information
maximegmd authored Feb 4, 2025
2 parents 42c3c8d + 496d936 commit 952aeac
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,11 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.mode }}
path: package/**
path: |
package/**
!package/**/*.pdb
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.mode }}-pdb
path: package/**/*.pdb
11 changes: 9 additions & 2 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ elseif is_mode("releasedbg") then
vsRuntime = vsRuntime.."d"
elseif is_mode("release") then
add_defines("NDEBUG")
set_symbols("hidden")
set_symbols("debug")
set_strip("all")
set_optimize("fastest")
set_runtimes("MD")
Expand Down Expand Up @@ -96,7 +96,14 @@ target("cyber_engine_tweaks")
os.cp("LICENSE", "package/bin/x64/")
os.cp("ThirdParty_LICENSES", "package/bin/x64/plugins/cyber_engine_tweaks/ThirdParty_LICENSES")

os.cp(target:targetfile(), "package/bin/x64/plugins/")
local target_file = target:targetfile()

os.cp(target_file, "package/bin/x64/plugins/")

os.cp(path.join(
path.directory(target_file),
path.basename(target_file)..".pdb"
), "package/bin/x64/plugins/")
end)
on_install(function(target)
cprint("${green bright}Installing Cyber Engine Tweaks ..")
Expand Down

0 comments on commit 952aeac

Please sign in to comment.