Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add win_build_rust_server.bat and install_openssl.bat
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
curl -L -o openssl.exe "http://slproweb.com/download/Win64OpenSSL-1_0_2h.exe" | ||
openssl.exe /SILENT /VERYSILENT /SP- /DIR="C:\OpenSSL" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
cmd.exe /c "win_verify_tools.bat" | ||
|
||
|
||
echo "Run ci/wintools/install_openssl.bat to create C:\OpenSSL" | ||
REM set CONAN_ARCH=x86 | ||
set CONAN_ARCH=x86_64 | ||
SET RUST_TARGET=x86_64-pc-windows-msvc | ||
|
||
|
||
set OPENSSL_INCLUDE_DIR=C:\OpenSSL\include | ||
set OPENSSL_LIB_DIR=C:\OpenSSL\lib | ||
set OPENSSL_LIBS=ssleay32:libeay32 | ||
|
||
cd imageflow_server | ||
cargo test | ||
cargo build --target=%RUST_TARGET% --release | ||
cargo doc --no-deps | ||
cd .. | ||
|
||
echo Copying to artifacts\staging | ||
|
||
mkdir artifacts | ||
mkdir artifacts\staging | ||
mkdir artifacts\staging\doc | ||
dir target\%RUST_TARGET%\release\ | ||
xcopy /Y target\%RUST_TARGET%\release\imageflow_server.exe artifacts\staging\ | ||
xcopy /Y /E target\doc artifacts\staging\doc | ||
|
||
|
||
|
||
|