|
48 | 48 | - name: Compile Project |
49 | 49 | shell: cmd |
50 | 50 | run: | |
51 | | - :: Remove previous cmake build folder |
52 | | - rmdir /s /q build >nul 2>nul |
53 | | - :: Link MinGW to system variables |
54 | | - mkdir C:\Qt\Tools > nul |
55 | | - mklink C:\Qt\Tools\mingw_64 C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64 > nul |
56 | | - set PATH=%PATH%;C:\Qt\5.15.2\mingw81_64\bin;C:\Qt\Tools\mingw_64\bin |
57 | | - |
58 | | - :: Print header |
59 | | - echo Program: GenHotkeys |
60 | | - echo Authors: mah_boi, nikitvs |
61 | | - echo. |
62 | | -
|
63 | | - :: Set up cmake config folder for the project |
64 | | - echo Configuring MinGW Make... |
65 | | - cmake -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH=C:\Qt\Tools\mingw_64\bin\gcc.exe -DCMAKE_CXX_COMPILER:FILEPATH=C:\Qt\Tools\mingw_64\bin\g++.exe -S.\ -B.\build -G "MinGW Makefiles" |
66 | | - echo Configuring MinGW Make done |
67 | | - echo. |
68 | | -
|
69 | | - :: Start compiling |
70 | | - echo Compilation and linking executables... |
71 | | - cmake --build .\build --config Release --target all -j 16 |
72 | | - echo Compilation and linking executables done |
73 | | - echo. |
74 | | -
|
75 | | - :: Copy translation tools |
76 | | - mkdir build\exe\Resources\Translations\Tools |
77 | | - copy /y C:\Qt\5.15.2\mingw81_64\bin\lrelease.exe build\exe\Resources\Translations\Tools |
78 | | - copy /y C:\Qt\5.15.2\mingw81_64\bin\linguist.exe build\exe\Resources\Translations\Tools |
79 | | - copy /y src\GUI\Translations\ru.ts build\exe\Resources\Translations\Tools |
80 | | - echo lrelease.exe -- CLI Qt compilation tool to compile *.ts files to the *.qm. Run lrelease.exe --help to see more info about how to use it. >> build\exe\Resources\Translations\Tools\readme.txt |
81 | | - echo linguist.exe -- GUI Qt translation tool to edit *.ts files. >> build\exe\Resources\Translations\Tools\readme.txt |
82 | | - echo ru.ts -- Translation file example. >> build\exe\Resources\Translations\Tools\readme.txt |
83 | | -
|
84 | | - :: Add any file to "Logs" folder for the next shipping |
85 | | - mkdir build\exe\Logs >nul 2> nul |
86 | | - cd build\exe\Logs |
87 | | - echo Do not delete this folder, please. Or program will can not be start. > readme.txt |
| 51 | + call Build.bat |
88 | 52 |
|
89 | 53 | # Upload artifact to the GitHub |
90 | 54 | - name: Upload Artifact |
|
0 commit comments