From f9f8fdc6948c4ddc0431061fe1c4ad5cd18fb457 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel <guilhem.saurel@laas.fr> Date: Mon, 20 Mar 2023 11:35:59 +0100 Subject: [PATCH] ci: test linux / osx with pip --- .github/workflows/macos-linux-pip.yml | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/macos-linux-pip.yml diff --git a/.github/workflows/macos-linux-pip.yml b/.github/workflows/macos-linux-pip.yml new file mode 100644 index 00000000..cfc0b58b --- /dev/null +++ b/.github/workflows/macos-linux-pip.yml @@ -0,0 +1,28 @@ +name: Build hpp-fcl for Mac OS X/Linux via pip + +on: [push, pull_request] + +jobs: + hpp-fcl-pip: + name: CI on ${{ matrix.os }} / python ${{ matrix.python-version }} with pip + runs-on: "${{ matrix.os }}-latest" + + strategy: + fail-fast: false + matrix: + os: ["ubuntu", "macos"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + steps: + - uses: actions/checkout@v3 + with: + submodules: 'true' + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - run: python -m pip install -U pip + - run: python -m pip install cmeel cmeel-assimp cmeel-octomap cmeel-eigen eigenpy + - run: echo "CMAKE_PREFIX_PATH=$(python -m cmeel cmake)" >> $GITHUB_ENV + - run: echo "LD_LIBRARY_PATH=$(python -m cmeel lib)" >> $GITHUB_ENV + - run: cmake -B build -S . + - run: cmake --build build + - run: cmake --build build -t test -- GitLab