-
Notifications
You must be signed in to change notification settings - Fork 4
/
ci_build_win.bat
32 lines (24 loc) · 920 Bytes
/
ci_build_win.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
SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
SET PATH=%PATH%;C:\MinGW\bin
rustup toolchain list --verbose
rustup toolchain install stable-x86_64-pc-windows-msvc
rustup toolchain install stable-i686-pc-windows-msvc
rustup toolchain list --verbose
git submodule update --init
pushd %~dp0\rure\regex-capi
SET VCTOOLPATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\
echo "%VCTOOLPATH%
call "%VCTOOLPATH%\vcvars64.bat"
rustup default stable-x86_64-pc-windows-msvc
cargo --version --verbose
cargo clean
cargo build --release
xcopy ..\target\release\rure.dll %~dp0\runtimes\win-x64\native\
call "%VCTOOLPATH%\vcvars32.bat"
rustup default stable-i686-pc-windows-msvc
cargo --version --verbose
cargo clean
cargo build --release
xcopy ..\target\release\rure.dll %~dp0\runtimes\win-x86\native\
pushd %~dp0
dotnet build -c Release -o PublishOutput IronRure.Batteries-Windows.csproj