Skip to content

Commit cc28baf

Browse files
authored
Build and ship debug symbols (#69)
Signed-off-by: Sven Strickroth <[email protected]>
1 parent efa9d0b commit cc28baf

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/CI_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
uses: actions/upload-artifact@v4
4040
with:
4141
name: NppEditorConfig-${{ steps.tagName.outputs.tag }}-${{ matrix.build_platform }}
42-
path: bin\${{ matrix.build_platform }}\NppEditorConfig.dll
42+
path: bin\${{ matrix.build_platform }}\NppEditorConfig.*
4343

4444

4545
- name: Release on tagging

build.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ if ($install) {
134134
}
135135
npp {
136136
Copy-Item $dest\$arch\$proj\bin\unicode\$config\NppEditorConfig.dll -Destination $dest\$arch\ -Force -Confirm:$false
137+
Copy-Item $dest\$arch\$proj\bin\unicode\$config\NppEditorConfig.pdb -Destination $dest\$arch\ -Force -Confirm:$false
137138
}
138139
}
139140
}

src/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ if(MSVC)
3636
add_compile_options(/W4)
3737
endif(MSVC)
3838

39+
# always build debug symbols
40+
if(MSVC)
41+
add_compile_options(/Zi)
42+
add_link_options(/DEBUG)
43+
endif(MSVC)
44+
3945
## section: source files
4046
set(NppEditorConfig_SOURCE_FILES
4147
./DlgAbout.cpp

0 commit comments

Comments
 (0)