Skip to content

Commit

Permalink
Try to add artifact upload to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Predelnik committed Apr 7, 2024
1 parent 9ab0ab0 commit 51f8750
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <NAME>"
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
- name: Upload Artifacts
if: matrix.build_type == 'Release'
working-directory: ./build
run: |
cpack -C ${{matrix.build_type}} -G ${{matrix.package_generator}}
uses: actions/upload-artifact@v4
with:
name: DSpellCheck-${{matrix.arch}}
path: |
./build/${{matrix.build_type}}/DSpellCheck.dll
./build/${{matrix.build_type}}/DSpellCheck.pdb
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,6 @@ pvs_studio_add_target(TARGET DSpellCheck.analyze ALL
endif ()

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

0 comments on commit 51f8750

Please sign in to comment.