Skip to content

Commit

Permalink
ci: Try to activate cppad codegen binding with clang-cl
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed May 21, 2024
1 parent baa6589 commit 57071cc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ env:
jobs:
build:
runs-on: ${{ matrix.os }}
env:
BUILD_CPPAD_CODEGEN: OFF

strategy:
fail-fast: true
matrix:
Expand All @@ -29,6 +32,13 @@ jobs:
python-version: 3.8
auto-activate-base: false

- name: Setup cppad codegen
if: contains(matrix.compiler, 'clang')
shell: cmd /C CALL {0}
run: |
conda install cppadcodegen
echo "BUILD_CPPAD_CODEGEN=ON" >> "$GITHUB_ENV"
- name: Build PyCppAD
shell: cmd /C CALL {0}
env:
Expand All @@ -46,7 +56,7 @@ jobs:
-DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library ^
-DPYTHON_SITELIB=%CONDA_PREFIX%\Lib\site-packages ^
-DPYTHON_EXECUTABLE=%CONDA_PREFIX%\python.exe ^
-DBUILD_WITH_CPPAD_CODEGEN_BINDINGS=OFF ^
-DBUILD_WITH_CPPAD_CODEGEN_BINDINGS=%BUILD_CPPAD_CODEGEN% ^
..
:: Build
Expand Down

0 comments on commit 57071cc

Please sign in to comment.