Skip to content

Commit ef3bd42

Browse files
committed
ci: Modernize CI and update dependencies
- Avoid to use default channel - Use conda clang-cl - Use conda doxygen - Use most recent version of Boost
1 parent e10fbb8 commit ef3bd42

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

.github/workflows/ci-ubuntu-macos.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ jobs:
2828

2929
- uses: conda-incubator/setup-miniconda@v3
3030
with:
31+
miniforge-version: latest
3132
activate-environment: pycppad
32-
auto-update-conda: true
3333
environment-file: .github/workflows/conda/conda-env.yml
34-
python-version: 3.8
34+
auto-update-conda: true
3535
auto-activate-base: false
36+
conda-remove-defaults: true
3637

3738
- name: Build PyCppAD
3839
shell: bash -el {0}
@@ -50,7 +51,7 @@ jobs:
5051
-DPYTHON_EXECUTABLE=$(which python3) \
5152
-DBUILD_WITH_CPPAD_CODEGEN_BINDINGS=ON
5253
ninja -j1
53-
ctest --output-on-failure -C Release -V
54+
ctest --output-on-failure
5455
ninja install
5556
5657
- name: Uninstall PyCppAD

.github/workflows/ci-windows.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,19 @@ env:
99

1010
jobs:
1111
build:
12+
name: build (${{ matrix.os }}, ${{ matrix.compiler.name }}, ${{ matrix.compiler.cppad_codegen }})
1213
runs-on: ${{ matrix.os }}
1314

1415
strategy:
15-
fail-fast: true
16+
fail-fast: false
1617
matrix:
1718
os: [windows-latest]
1819
compiler:
19-
- cmd: cl
20+
- name: cl
21+
cmd: cl
2022
cppad_codegen: OFF
21-
- cmd: clang-cl
23+
- name: clang-cl
24+
cmd: '%CONDA_PREFIX%\\Library\\bin\\clang-cl'
2225
cppad_codegen: ON
2326

2427
steps:
@@ -28,11 +31,12 @@ jobs:
2831

2932
- uses: conda-incubator/setup-miniconda@v3
3033
with:
34+
miniforge-version: latest
3135
activate-environment: pycppad
32-
auto-update-conda: true
3336
environment-file: .github/workflows/conda/conda-env.yml
34-
python-version: 3.8
37+
auto-update-conda: true
3538
auto-activate-base: false
39+
conda-remove-defaults: true
3640

3741
- name: Build PyCppAD
3842
shell: cmd /C CALL {0}
@@ -62,7 +66,7 @@ jobs:
6266
ninja -j1
6367
6468
:: Testing
65-
ctest --output-on-failure -C Release -V
69+
ctest --output-on-failure
6670
6771
:: Test Python import
6872
ninja install

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ name: pycppad
22
channels:
33
- conda-forge
44
dependencies:
5-
- boost
5+
- libboost-devel
6+
- libboost-python-devel
67
- eigenpy
78
- python
89
- cppad
910
- cppadcodegen
10-
- ninja
1111
- cmake
1212
- pkg-config
1313
- ninja
1414
- cxx-compiler
15+
- clangxx
16+
- doxygen

0 commit comments

Comments
 (0)