Skip to content

Commit 3a15d93

Browse files
committed
CI
1 parent 35f50d1 commit 3a15d93

File tree

5 files changed

+26
-11
lines changed

5 files changed

+26
-11
lines changed

.github/workflows/windows.yml

+17-9
Original file line numberDiff line numberDiff line change
@@ -38,32 +38,40 @@ jobs:
3838
3939
- name: Compile
4040
run: |
41-
mkdir release
42-
cmake -S ${{github.workspace}} -B ${{github.workspace}}/release -DCMAKE_PREFIX_PATH=${{github.workspace}}/vcpkg_installed/x64-windows -DSPELLCHECKER_HUNSPELL=OFF -DSPELLCHECKER_NUSPELL=ON
43-
cmake --build ${{github.workspace}}/release --config ${{env.BUILD_TYPE}}
41+
mkdir build-cmake
42+
cmake -S ${{github.workspace}} -B ${{github.workspace}}/build-cmake -DCMAKE_PREFIX_PATH=${{github.workspace}}/vcpkg_installed/x64-windows -DSPELLCHECKER_HUNSPELL=OFF -DSPELLCHECKER_NUSPELL=ON
43+
cmake --build ${{github.workspace}}/build-cmake --config ${{env.BUILD_TYPE}}
4444
4545
- name: Create Package
4646
shell: cmd
4747
run: |
4848
mkdir InyokaEdit\plugins
4949
mkdir InyokaEdit\community
50-
copy release\..\InyokaEdit.exe InyokaEdit\InyokaEdit.exe
50+
copy build-cmake\application\Release\InyokaEdit.exe InyokaEdit\InyokaEdit.exe
5151
windeployqt --release --no-translations --no-opengl-sw InyokaEdit\InyokaEdit.exe
5252
lconvert -o InyokaEdit\translations\qt_de.qm ${env:QT_ROOT_DIR}\translations\qtbase_de.qm ${env:QT_ROOT_DIR}\translations\qtwebengine_de.qm
5353
copy COPYING InyokaEdit\
5454
copy application\3rdparty\miniz\LICENSE InyokaEdit\Miniz_License.txt
5555
copy packaging\Windows\ICU_License.txt InyokaEdit\
5656
copy packaging\Windows\Nuspell_License.txt InyokaEdit\
57-
xcopy /y /d vcpkg_installed\*.dll InyokaEdit\
57+
xcopy /y /d vcpkg_installed\x64-windows\bin\*.dll InyokaEdit\
5858
xcopy /i /e /s packaging\Windows\dicts InyokaEdit\dicts\
59-
copy release\..\plugins\*.dll InyokaEdit\plugins\
59+
copy build-cmake\plugins\highlighter\Release\*.dll InyokaEdit\plugins\
60+
copy build-cmake\plugins\hotkey\Release\*.dll InyokaEdit\plugins\
61+
copy build-cmake\plugins\spellchecker-nuspell\Release\*.dll InyokaEdit\plugins\
62+
copy build-cmake\plugins\uu_knowledgebox\Release\*.dll InyokaEdit\plugins\
63+
copy build-cmake\plugins\uu_tabletemplate\Release\*.dll InyokaEdit\plugins\
6064
chcp 65001 && xcopy /i /e /s community\* InyokaEdit\community\
61-
$buildnr = git rev-parse --short main
62-
7z a "InyokaEdit-Windows_$($buildnr).zip" .\InyokaEdit\
65+
git rev-parse --short main > buildnr.txt
66+
set /p buildnr= < buildnr.txt
67+
del buildnr.txt
68+
set output_zip=InyokaEdit-Windows_%buildnr%.zip
69+
set output_exe=InyokaEdit-Windows_%buildnr%.exe
70+
7z a %output_zip% .\InyokaEdit\
6371
copy packaging\Windows\inyokaedit.nsi inyokaedit.nsi
6472
copy packaging\Windows\inyokaedit.ico inyokaedit.ico
6573
makensis inyokaedit.nsi
66-
ren InyokaEdit_Installer.exe "InyokaEdit-Windows_$($buildnr).exe"
74+
ren InyokaEdit_Installer.exe %output_exe%
6775
6876
- uses: actions/upload-artifact@v4
6977
with:

cmake/FindHUNSPELL.cmake

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ find_package(PkgConfig)
1212
pkg_check_modules(PKG_HUNSPELL QUIET hunspell)
1313

1414
find_path(HUNSPELL_INCLUDE_DIRS
15-
NAMES hunspell.hxx
15+
NAMES hunspell/hunspell.hxx
1616
PATH_SUFFIXES hunspell
1717
HINTS ${PKG_HUNSPELL_INCLUDE_DIRS}
1818
)
19+
message(STATUS "hunspell/include => ${HUNSPELL_INCLUDE_DIRS}")
20+
1921
find_library(HUNSPELL_LIBRARIES
2022
NAMES ${PKG_HUNSPELL_LIBRARIES} hunspell hunspell-1.7 hunspell-1.6 hunspell-1.5 hunspell-1.4 hunspell-1.3 hunspell-1.2 libhunspell
2123
HINTS ${PKG_HUNSPELL_LIBRARY_DIRS}

cmake/FindNUSPELL.cmake

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ find_package(PkgConfig)
99
pkg_check_modules(PKG_NUSPELL QUIET nuspell)
1010

1111
find_path(NUSPELL_INCLUDE_DIRS
12-
NAMES dictionary.hxx
12+
NAMES nuspell/dictionary.hxx
1313
PATH_SUFFIXES nuspell
1414
HINTS ${PKG_NUSPELL_INCLUDE_DIRS}
1515
)
1616
find_library(NUSPELL_LIBRARIES
1717
NAMES ${PKG_NUSPELL_LIBRARIES} nuspell nuspell-5.1 hunspell-5.0 libnuspell
1818
HINTS ${PKG_NUSPELL_LIBRARY_DIRS}
1919
)
20+
message(STATUS "nuspell/include => ${NUSPELL_INCLUDE_DIRS}")
2021

2122
include(FindPackageHandleStandardArgs)
2223
find_package_handle_standard_args(NUSPELL

plugins/spellchecker-hunspell/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ target_link_libraries(spellchecker-hunspell
4949
${HUNSPELL_LIBRARIES}
5050
)
5151

52+
include_directories(${HUNSPELL_INCLUDE_DIRS})
53+
5254
set(HEADERS
5355
hunspellcheckdialog.h
5456
spellchecker-hunspell.h

plugins/spellchecker-nuspell/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ target_link_libraries(spellchecker-nuspell
4949
${NUSPELL_LIBRARIES}
5050
)
5151

52+
include_directories(${NUSPELL_INCLUDE_DIRS})
53+
5254
set(HEADERS
5355
nuspellcheckdialog.h
5456
spellchecker-nuspell.h

0 commit comments

Comments
 (0)