-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exchanged appveyor with azure pipelines for windows (#30)
* switch to VS2019 * trying to add azure win64 build * added batch script for build in windows * try to fix python install path on win * fix conda activate * test for VS2019 * added azure pipelines build badge Co-authored-by: G. Dan Miron <[email protected]>
- Loading branch information
Showing
8 changed files
with
126 additions
and
8 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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
image: | ||
# - Visual Studio 2015 | ||
- Visual Studio 2017 | ||
- Visual Studio 2019 | ||
|
||
build: | ||
parallel: true | ||
|
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
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" ( | ||
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" | ||
if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" ( | ||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat" | ||
) | ||
if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" ( | ||
call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 | ||
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64 | ||
) | ||
|
||
echo "Configuring..." | ||
cmake -G"Visual Studio 15 2017" -DTHERMOFUN_PYTHON_INSTALL_PREFIX:PATH="C:/Miniconda36-x64/envs/thermofun/" -A x64 -S . -B build | ||
cmake -G"Visual Studio 16 2019" -DTHERMOFUN_PYTHON_INSTALL_PREFIX:PATH="C:/Miniconda36-x64/envs/thermofun/" -A x64 -S . -B build | ||
echo "Building..." | ||
cmake --build build --config %CONFIGURATION% --target install |
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,27 @@ | ||
rem Copyright (C) 2022 dmiron | ||
rem | ||
rem This file is part of thermofun. | ||
rem | ||
rem thermofun is free software: you can redistribute it and/or modify | ||
rem it under the terms of the GNU General Public License as published by | ||
rem the Free Software Foundation, either version 3 of the License, or | ||
rem (at your option) any later version. | ||
rem | ||
rem thermofun is distributed in the hope that it will be useful, | ||
rem but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
rem GNU General Public License for more details. | ||
rem | ||
rem You should have received a copy of the GNU General Public License | ||
rem along with thermofun. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
mkdir build | ||
cd build | ||
|
||
call activate thermofun | ||
|
||
cmake -G Ninja ^ | ||
-DTHERMOFUN_PYTHON_INSTALL_PREFIX:PATH="%CONDA_PREFIX%" ^ | ||
-DCMAKE_BUILD_TYPE=Release ^ | ||
.. | ||
ninja install |
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
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,25 @@ | ||
rem Copyright (C) 2022 dmiron | ||
rem | ||
rem This file is part of thermofun. | ||
rem | ||
rem thermofun is free software: you can redistribute it and/or modify | ||
rem it under the terms of the GNU General Public License as published by | ||
rem the Free Software Foundation, either version 3 of the License, or | ||
rem (at your option) any later version. | ||
rem | ||
rem thermofun is distributed in the hope that it will be useful, | ||
rem but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
rem GNU General Public License for more details. | ||
rem | ||
rem You should have received a copy of the GNU General Public License | ||
rem along with thermofun. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
call activate thermofun | ||
|
||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat" | ||
|
||
echo "Configuring..." | ||
cmake -G"Visual Studio 16 2019" -DTHERMOFUN_PYTHON_INSTALL_PREFIX:PATH="%CONDA_PREFIX%" -A x64 -S . -B build | ||
echo "Building..." | ||
cmake --build build --config %CONFIGURATION% --target install |
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