Skip to content

Commit

Permalink
ci: Add pixi workflow to test Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Dec 20, 2024
1 parent 345a0ac commit fdfa83e
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/windows-pixi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build ndcurves for Windows via pixi

on: [push, pull_request]

jobs:
ndcurves-pixi:
name: "CI on ${{ matrix.os }} / python ${{ matrix.python-version }} with pixi"
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: prefix-dev/setup-pixi@v0.8.1
with:
cache: true
- name: Create pixi.toml
shell: bash
run: |
pixi init
pixi add cmake \
ninja \
cxx-compiler \
eigen \
eigenpy \
pinocchio \
libboost-devel \
libboost-python-devel
- name: Configure
shell: pixi run bash -e {0}
env:
COMPILER: ${{ matrix.compiler }}
run: |
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: pixi run bash -e {0}
run: cmake --build build
- name: Test
shell: pixi run bash -e {0}
run: cmake --build build -t test

0 comments on commit fdfa83e

Please sign in to comment.