Skip to content

Commit a370207

Browse files
committed
ci/windows: install cppadcodegen from conda
1 parent cdbc0a3 commit a370207

File tree

3 files changed

+8
-35
lines changed

3 files changed

+8
-35
lines changed

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

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: PyCppAD CI for Windows - Clang
22
on:
33
pull_request:
44
push:
5-
5+
66
env:
77
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
88
BUILD_TYPE: Release
9-
9+
1010
jobs:
1111
build:
1212
runs-on: ${{ matrix.os }}
@@ -35,7 +35,7 @@ jobs:
3535
- name: Install cmake and update conda
3636
run: |
3737
conda install cmake -c main
38-
- name: Build CppADCodeGen, CppAD, PyCppAD
38+
- name: Build PyCppAD
3939
shell: cmd /C CALL {0}
4040
env:
4141
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
@@ -47,40 +47,12 @@ jobs:
4747
set PATH=%PATH:C:\hostedtoolcache\windows\Boost\1.72.0;=%
4848
4949
call "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64
50-
51-
:: Create build directory
52-
git clone --recursive https://github.com/proyan/CppAD
53-
cd CppAD
54-
mkdir build
55-
pushd build
56-
cmake ^
57-
-G "Visual Studio 16 2019" -T "ClangCl" -DCMAKE_GENERATOR_PLATFORM=x64 ^
58-
-DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library ^
59-
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ^
60-
..
61-
cmake --build ${{github.workspace}}/CppAD/build --config ${{env.BUILD_TYPE}} --target check install
62-
cd ${{github.workspace}}/CppAD/build/
63-
64-
cd ${{github.workspace}}
6550
66-
git clone --recursive https://github.com/joaoleal/CppADCodeGen
67-
cd CppADCodeGen
68-
mkdir build
69-
pushd build
70-
cmake ^
71-
-G "Visual Studio 16 2019" -T "ClangCl" -DCMAKE_GENERATOR_PLATFORM=x64 ^
72-
-DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library ^
73-
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ^
74-
-DGOOGLETEST_GIT=ON ^
75-
..
76-
cmake --build ${{github.workspace}}/CppADCodeGen/build --config ${{env.BUILD_TYPE}} --target install
7751
cd ${{github.workspace}}
7852
79-
8053
mkdir build
8154
pushd build
8255
83-
8456
:: Configure
8557
cmake ^
8658
-G "Visual Studio 16 2019" -T "ClangCl" -DCMAKE_GENERATOR_PLATFORM=x64 ^

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: PyCppAD CI for Windows - (v142)
22
on:
33
pull_request:
44
push:
5-
5+
66
env:
77
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
88
BUILD_TYPE: Release
9-
9+
1010
jobs:
1111
build:
1212
runs-on: ${{ matrix.os }}
@@ -34,7 +34,7 @@ jobs:
3434
- name: Install cmake and update conda
3535
run: |
3636
conda install cmake -c main
37-
37+
3838
- name: Build PyCppAD
3939
shell: cmd /C CALL {0}
4040
env:
@@ -47,7 +47,7 @@ jobs:
4747
set PATH=%PATH:C:\hostedtoolcache\windows\Boost\1.72.0;=%
4848
4949
call "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64
50-
50+
5151
:: Create build directory
5252
mkdir build
5353
pushd build

.github/workflows/conda/conda-env-win.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ dependencies:
66
- boost
77
- eigenpy
88
- python
9+
- cppadcodegen

0 commit comments

Comments
 (0)