-
Notifications
You must be signed in to change notification settings - Fork 99
59 lines (54 loc) · 1.91 KB
/
conda-windows-eigen.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: conda-windows-eigen
on:
push:
branches:
- master
- 'stable/*'
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: conda_env
- name: Use conda to install eigen and pkgconfig
shell: cmd /C CALL {0}
run: |
echo conda install --yes eigen pkgconfig
conda install --yes eigen pkgconfig
- name: Create and check Eigen link, check for eigen3.pc
shell: cmd /C CALL {0}
run: |
mklink /d %CONDA_PREFIX%\Library\include\Eigen^
%CONDA_PREFIX%\Library\include\eigen3\Eigen
echo dir %CONDA_PREFIX%\Library\include\Eigen\Core
dir %CONDA_PREFIX%\Library\include\Eigen\Core
echo dir %CONDA_PREFIX%\Library\share\pkgconfig\eigen3.pc
dir %CONDA_PREFIX%\Library\share\pkgconfig\eigen3.pc
- name: Build and test CppAD with Eigen
shell: cmd /C CALL {0}
run: |
echo Use vcvarsall.bat to get proper version of cmake
call "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64
echo where camke
where cmake
echo mkdir build
mkdir build
echo cd build
cd build
echo set PKG_CONFIG_PATH=%CONDA_PREFIX%\Library\share\pkgconfig
set PKG_CONFIG_PATH=%CONDA_PREFIX%\Library\share\pkgconfig
echo run cmake
cmake ^
-D CMAKE_CXX_COMPILER=cl ^
-D CMAKE_C_COMPILER=cl ^
-D CMAKE_BUILD_TYPE=release ^
-G "NMake Makefiles" ^
-D include_eigen=true ^
-D cppad_static_lib=TRUE ^
-D cppad_cxx_flags="/MP /EHs /EHc /std:c++17 /Zc:__cplusplus" ^
..
REM Build and run tests.
echo cmake --build . --target check
cmake --build . --target check