Skip to content

Fix Windows build

Fix Windows build #1

Workflow file for this run

name: Build ndcurves for Windows via conda
on: [push, pull_request]
jobs:
ndcurves-conda:
name: "CI on ${{ matrix.os }} / python ${{ matrix.python-version }} with conda"
runs-on: "${{ matrix.os }}"
strategy:
matrix:
os: [windows-latest]
python-version: ["3.9", "3.12"]
compiler: [cl, clang-cl]
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- uses: conda-incubator/setup-miniconda@v3
with:
channels: conda-forge
python-version: ${{ matrix.python-version }}
activate-environment: ndcurve
conda-remove-defaults: "true"
- name: Create conda environment
shell: bash -l {0}
run: |
conda install cmake \
ninja \
cxx-compiler \
eigen \
eigenpy \
pinocchio \
libboost-devel \
libboost-python-devel
- name: Configure
shell: bash -l {0}
env:
COMPILER: ${{ matrix.compiler }}
run: |
conda info
conda list
export CXX=$COMPILER
cmake -B build \
-S . \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_PYTHON_INTERFACE=ON \
-DGENERATE_PYTHON_STUB=ON \
-DCURVES_WITH_PINOCCHIO_SUPPORT=ON
- name: Build
shell: bash -l {0}
run: cmake --build build
- name: Test
shell: bash -l {0}
run: cmake --build build -t test