Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
8ee6a043
Commit
8ee6a043
authored
Jan 23, 2023
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: compile against libssh2 on windows
parent
fd5ea577
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
2 deletions
+35
-2
.github/workflows/main.yml
+8
-2
ci/setup-win32-build.sh
+27
-0
No files found.
.github/workflows/main.yml
View file @
8ee6a043
...
...
@@ -176,19 +176,25 @@ jobs:
-
name
:
"
Windows
(amd64,
Visual
Studio)"
id
:
windows-amd64-vs
os
:
windows-2019
setup-script
:
win32
env
:
ARCH
:
amd64
CMAKE_GENERATOR
:
Visual Studio 16 2019
CMAKE_OPTIONS
:
-A x64 -DWIN32_LEAKCHECK=ON -DDEPRECATE_HARD=ON
CMAKE_OPTIONS
:
-A x64 -DWIN32_LEAKCHECK=ON -DDEPRECATE_HARD=ON -DUSE_SSH=ON -DCMAKE_PREFIX_PATH=D:\Temp\libssh2
BUILD_PATH
:
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\CMake\bin;D:\Temp\libssh2\bin
BUILD_TEMP
:
D:\Temp
SKIP_SSH_TESTS
:
true
SKIP_NEGOTIATE_TESTS
:
true
-
name
:
"
Windows
(x86,
Visual
Studio)"
id
:
windows-x86-vs
os
:
windows-2019
setup-script
:
win32
env
:
ARCH
:
x86
CMAKE_GENERATOR
:
Visual Studio 16 2019
CMAKE_OPTIONS
:
-A Win32 -DWIN32_LEAKCHECK=ON -DDEPRECATE_HARD=ON -DUSE_SHA1=HTTPS -DUSE_BUNDLED_ZLIB=ON
CMAKE_OPTIONS
:
-A Win32 -DWIN32_LEAKCHECK=ON -DDEPRECATE_HARD=ON -DUSE_SHA1=HTTPS -DUSE_BUNDLED_ZLIB=ON -DUSE_SSH=ON -DCMAKE_PREFIX_PATH=D:\Temp\libssh2
BUILD_PATH
:
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\CMake\bin;D:\Temp\libssh2\bin
BUILD_TEMP
:
D:\Temp
SKIP_SSH_TESTS
:
true
SKIP_NEGOTIATE_TESTS
:
true
-
name
:
"
Windows
(amd64,
mingw)"
...
...
ci/setup-win32-build.sh
0 → 100755
View file @
8ee6a043
#!/bin/sh
set
-ex
echo
"##############################################################################"
echo
"## Downloading libssh2"
echo
"##############################################################################"
BUILD_TEMP
=
${
BUILD_TEMP
:
=
$TEMP
}
BUILD_TEMP
=
$(
cygpath
$BUILD_TEMP
)
case
"
$ARCH
"
in
amd64
)
LIBSSH2_URI
=
"https://github.com/libgit2/ci-dependencies/releases/download/2023-02-01/libssh2-20230201-amd64.zip"
;;
x86
)
LIBSSH2_URI
=
"https://github.com/libgit2/ci-dependencies/releases/download/2023-02-01-v2/libssh2-20230201-x86.zip"
;;
esac
if
[
-z
"
$LIBSSH2_URI
"
]
;
then
echo
"No URL"
exit
1
fi
mkdir
-p
"
$BUILD_TEMP
"
curl
-s
-L
"
$LIBSSH2_URI
"
-o
"
$BUILD_TEMP
"
/libssh2-
"
$ARCH
"
.zip
unzip
-q
"
$BUILD_TEMP
"
/libssh2-
"
$ARCH
"
.zip
-d
"
$BUILD_TEMP
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment