File tree Expand file tree Collapse file tree 4 files changed +65
-2
lines changed Expand file tree Collapse file tree 4 files changed +65
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : test
2
+
3
+ on :
4
+ push :
5
+ branches : [ dev-ssh2 ]
6
+ paths-ignore :
7
+ - ' doc/**'
8
+ - ' docs/**'
9
+ - ' README.md'
10
+ - ' README_zh_CN.md'
11
+ - ' DEVELOPNOTE.md'
12
+ - ' CHANGELOG.md'
13
+ - ' .readthedocs.yaml'
14
+ pull_request :
15
+ branches : [ main ]
16
+ paths-ignore :
17
+ - ' doc/**'
18
+ - ' docs/**'
19
+ - ' README.md'
20
+ - ' README_zh_CN.md'
21
+ - ' DEVELOPNOTE.md'
22
+ - ' CHANGELOG.md'
23
+ - ' .readthedocs.yaml'
24
+ workflow_dispatch :
25
+
26
+ jobs :
27
+ windows_msvc2019 :
28
+ runs-on : windows-2022
29
+
30
+ steps :
31
+ - uses : actions/checkout@v4
32
+
33
+ - name : Install prerequisites
34
+ run : |
35
+ Choco-Install -PackageName innosetup --force
36
+ Choco-Install -PackageName cmake --force
37
+
38
+ - name : Setup MSVC
39
+ uses : ilammy/msvc-dev-cmd@v1
40
+ with :
41
+ arch : x64
42
+ toolset : 14.29
43
+
44
+ - name : Build libssh2
45
+ run : |
46
+ cd depend
47
+ ./build_libssh2_msvc.bat
48
+ mkdir D:\\libssh2
49
+ mkdir D:\\libssh2\\include
50
+ mkdir D:\\libssh2\\lib
51
+ mkdir D:\\libssh2\\bin
52
+ cp -r ./output/include/* D:\\libssh2\\include/
53
+ cp -r ./output/lib/* D:\\libssh2\\lib/
54
+ cp -r ./output/bin/* D:\\libssh2\\bin/
55
+
56
+ - name : Upload build asserts
57
+ uses : actions/upload-artifact@v3.1.3
58
+ with :
59
+ name : libssh2
60
+ path : |
61
+ D:\\libssh2
62
+
Original file line number Diff line number Diff line change @@ -153,6 +153,7 @@ jobs:
153
153
./tools/sed/sed.exe -i "s/QT_DIR=C:\/Qt\/Qt6.2.0\/6.2.0\/msvc64\/bin/QT_DIR=%Qt6_DIR%/g" ./build_setup_msvc.bat
154
154
./tools/sed/sed.exe -i "s/QT_TOOLS_DIR=C:\/Qt\/Qt6.2.0\/Tools\/msvc64\/bin/QT_TOOLS_DIR=C:\/ProgramData\/Chocolatey\/lib\/mingw\/tools\/install\/msvc64\/bin/g" ./build_setup_msvc.bat
155
155
./tools/sed/sed.exe -i "s/WINPTY_DIR=D:\\quardCRT\\depend\\winpty/WINPTY_DIR=D:\\winpty/g" ./lib/ptyqt/ptyqt.pri
156
+ ./tools/sed/sed.exe -i "s/LIBSSH2_DIR=\/libssh2/LIBSSH2_DIR=D:\\libssh2/g" ./lib/qtssh/qtssh.pri
156
157
./build_setup_msvc.bat
157
158
cp ./InnoSetup/quardCRT_setup.exe ./InnoSetup/quardCRT_setup_msvc.exe
158
159
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ del /f /q /a .\sed*
38
38
xcopy /y .\build_release\out\quardCRT.exe .\InnoSetup\build\
39
39
:: 使用windeployqt拷贝依赖dll库到打包目录
40
40
windeployqt --dir .\InnoSetup\build .\InnoSetup\build\quardCRT.exe
41
+ xcopy /y " D:\libssh2\bin\*.dll" " .\InnoSetup\build\"
41
42
xcopy /y " D:\winpty\bin\winpty.dll" " .\InnoSetup\build\"
42
43
xcopy /y " D:\winpty\bin\winpty-agent.exe" " .\InnoSetup\build\"
43
44
xcopy /y .\scripts\Profile.ps1 .\InnoSetup\build\
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
- SHELL_FOLDER=$( cd " $( dirname " $0 " ) " ; pwd)
5
4
tar -xzvf libssh2-1.11.0.tar.gz
6
5
mkdir output
7
- cd $SHELL_FOLDER /libssh2-1.11.0
6
+ cd . /libssh2-1.11.0
8
7
cmake -DCRYPTO_BACKEND=WinCNG -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=../output --build .
9
8
cmake --build . --target install
You can’t perform that action at this time.
0 commit comments