Skip to content

Commit 26f0c73

Browse files
committed
ci/windows: build CppAD from source
1 parent a370207 commit 26f0c73

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/ci-windows-clang.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,35 @@ jobs:
4848
4949
call "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64
5050
51+
:: Install CppAD
52+
git clone --recursive https://github.com/jcarpent/CppAD
53+
cd CppAD
54+
git checkout topic/windows
55+
mkdir build
56+
pushd build
57+
cmake ^
58+
-G "Visual Studio 16 2019" -T "ClangCl" -DCMAKE_GENERATOR_PLATFORM=x64 ^
59+
-DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library ^
60+
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ^
61+
..
62+
cmake --build ${{github.workspace}}/CppAD/build --config ${{env.BUILD_TYPE}} --target check install
63+
cd ${{github.workspace}}/CppAD/build/
64+
65+
cd ${{github.workspace}}
66+
67+
:: Install CppADCodeGen
68+
git clone --recursive https://github.com/joaoleal/CppADCodeGen
69+
cd CppADCodeGen
70+
mkdir build
71+
pushd build
72+
cmake ^
73+
-G "Visual Studio 16 2019" -T "ClangCl" -DCMAKE_GENERATOR_PLATFORM=x64 ^
74+
-DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library ^
75+
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ^
76+
-DGOOGLETEST_GIT=ON ^
77+
..
78+
cmake --build ${{github.workspace}}/CppADCodeGen/build --config ${{env.BUILD_TYPE}} --target install
79+
5180
cd ${{github.workspace}}
5281
5382
mkdir build

0 commit comments

Comments
 (0)