forked from imazen/imageflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
win_build_rust.bat
35 lines (30 loc) · 968 Bytes
/
win_build_rust.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
cmd.exe /c "win_verify_tools.bat"
REM set CONAN_ARCH=x86
set CONAN_ARCH=x86_64
SET RUST_TARGET=x86_64-pc-windows-msvc
conan export imazen/testing
cd imageflow_core
conan install --build missing -s build_type=Release -s arch=%CONAN_ARCH%
cargo test
cargo build --target=%RUST_TARGET% --release
cargo doc --no-deps
cd ..
cd imageflow_tool
cargo test
cargo build --target=%RUST_TARGET% --release
cargo doc --no-deps
cd ..
cd imageflow_cdylib
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\flow-proto1.exe artifacts\staging\
xcopy /Y target\%RUST_TARGET%\release\imageflowrs.dll artifacts\staging\
xcopy /Y target\%RUST_TARGET%\release\imageflow_tool.exe artifacts\staging\
xcopy /Y /d target\doc artifacts\staging\doc