Skip to content

Commit 91795f7

Browse files
authored
Add artifact upload to github actions (#338)
1 parent 9ab0ab0 commit 91795f7

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- x64
2323
- Win32
2424
build_type:
25-
- Release
25+
- RelWithDebInfo
2626
- Debug
2727
compiler:
2828
- msvc
@@ -45,16 +45,18 @@ jobs:
4545
cmake -S . -B ./build -G "${{matrix.generator}}" -A "${{matrix.arch}}" -DCMAKE_BUILD_TYPE:STRING=${{matrix.build_type}}
4646
4747
- name: Build
48-
# Execute the build. You can specify a specific target with "--target <NAME>"
4948
run: |
50-
cmake --build ./build --config ${{matrix.build_type}}
49+
cmake --build ./build --target DSpellCheck --config ${{matrix.build_type}}
5150
5251
- name: Test
5352
run: |
5453
ctest --build-and-test . ./build --build-generator "${{matrix.generator}}"
5554
56-
- name: CPack
57-
if: matrix.build_type == 'Release'
58-
working-directory: ./build
59-
run: |
60-
cpack -C ${{matrix.build_type}} -G ${{matrix.package_generator}}
55+
- name: Upload Artifacts
56+
if: matrix.build_type == 'RelWithDebInfo'
57+
uses: actions/upload-artifact@v4
58+
with:
59+
name: DSpellCheck-${{matrix.arch}}
60+
path: |
61+
./build/${{matrix.build_type}}/DSpellCheck.dll
62+
./build/${{matrix.build_type}}/DSpellCheck.pdb

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,6 @@ pvs_studio_add_target(TARGET DSpellCheck.analyze ALL
8787
endif ()
8888

8989
set_property(TARGET DSpellCheck DSpellCheckStatic DSpellCheckTest PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
90+
install(FILES $<TARGET_PDB_FILE:DSpellCheck> DESTINATION bin OPTIONAL)
9091
target_precompile_headers (DSpellCheckStatic PRIVATE "src/common/PrecompiledHeader.h")
9192
target_precompile_headers (DSpellCheckTest REUSE_FROM DSpellCheckStatic)

0 commit comments

Comments
 (0)