diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c67c06f..c7a2353 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: - x64 - Win32 build_type: - - Release + - RelWithDebInfo - Debug compiler: - msvc @@ -45,16 +45,18 @@ jobs: cmake -S . -B ./build -G "${{matrix.generator}}" -A "${{matrix.arch}}" -DCMAKE_BUILD_TYPE:STRING=${{matrix.build_type}} - name: Build - # Execute the build. You can specify a specific target with "--target " run: | - cmake --build ./build --config ${{matrix.build_type}} + cmake --build ./build --target DSpellCheck --config ${{matrix.build_type}} - name: Test run: | ctest --build-and-test . ./build --build-generator "${{matrix.generator}}" - - name: CPack - if: matrix.build_type == 'Release' - working-directory: ./build - run: | - cpack -C ${{matrix.build_type}} -G ${{matrix.package_generator}} + - name: Upload Artifacts + if: matrix.build_type == 'RelWithDebInfo' + uses: actions/upload-artifact@v4 + with: + name: DSpellCheck-${{matrix.arch}} + path: | + ./build/${{matrix.build_type}}/DSpellCheck.dll + ./build/${{matrix.build_type}}/DSpellCheck.pdb diff --git a/CMakeLists.txt b/CMakeLists.txt index 502dc21..6da7e09 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,5 +87,6 @@ pvs_studio_add_target(TARGET DSpellCheck.analyze ALL endif () set_property(TARGET DSpellCheck DSpellCheckStatic DSpellCheckTest PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") +install(FILES $ DESTINATION bin OPTIONAL) target_precompile_headers (DSpellCheckStatic PRIVATE "src/common/PrecompiledHeader.h") target_precompile_headers (DSpellCheckTest REUSE_FROM DSpellCheckStatic)