From 196b01f2be131ca76327179c1ab63fdfcd8876bd Mon Sep 17 00:00:00 2001 From: Joris Vaillant Date: Fri, 20 Dec 2024 23:06:23 +0100 Subject: [PATCH] ci: Add pixi workflow to test Windows build tests: uninit value --- .github/workflows/windows-pixi.yml | 54 ++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/windows-pixi.yml diff --git a/.github/workflows/windows-pixi.yml b/.github/workflows/windows-pixi.yml new file mode 100644 index 0000000..c7056a9 --- /dev/null +++ b/.github/workflows/windows-pixi.yml @@ -0,0 +1,54 @@ +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: false + run-install: false + - 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