Skip to content

Commit

Permalink
Testing [full_matrix] [deploy_github] [deploy_pypi]
Browse files Browse the repository at this point in the history
  • Loading branch information
scrgiorgio committed Nov 16, 2018
1 parent 23e1d32 commit abbfd9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMake/build_win.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@echo on

REM setup compiler
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
Expand Down Expand Up @@ -29,11 +30,13 @@ cmake --build . --target INSTALL --config RelWithDebInfo
cmake --build . --target deploy --config RelWithDebInfo

if %DEPLOY_GITHUB%==1 (
echo "Deploying to github enabled"
cmake --build . --target sdist --config RelWithDebInfo
"%PYTHON_EXECUTABLE%" -c "import os;import glob;filename=glob.glob('install/dist/*.zip')[0];os.rename(filename,filename.replace('.zip','.win_amd64.zip'))"
)

if %DEPLOY_PYPI%==1 (
echo "Deploying to pypi enabled"
cmake --build . --target bdist_wheel --config RelWithDebInfo
cmake --build . --target pypi --config RelWithDebInfo
)

0 comments on commit abbfd9f

Please sign in to comment.