Fix various bugs in serialization and computation of local AABB #1004
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build hpp-fcl for Mac OS X/Linux via Conda | |
on: [push,pull_request] | |
jobs: | |
hpp-fcl-conda: | |
name: CI on ${{ matrix.os }} with Conda - ${{ matrix.build_type }} ${{ matrix.cxx_options }} | |
runs-on: ${{ matrix.os }} | |
env: | |
CCACHE_BASEDIR: "${GITHUB_WORKSPACE}" | |
CCACHE_DIR: "${GITHUB_WORKSPACE}/.ccache" | |
CCACHE_COMPRESS: true | |
CCACHE_COMPRESSLEVEL: 6 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest", "macos-latest"] | |
python-version: ["3.8", "3.12"] | |
cxx_options: ['', '-mavx2'] | |
build_type: [Release, Debug] | |
exclude: | |
- build_type: Debug | |
cxx_options: -mavx2 | |
os: macos-latest | |
- build_type: Release | |
cxx_options: -mavx2 | |
os: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions/cache@v3 | |
with: | |
path: .ccache | |
key: ccache-macos-linux-conda-${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.cxx_options }}-${{ github.sha }} | |
restore-keys: ccache-macos-linux-conda-${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.cxx_options }}- | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: fcl | |
auto-update-conda: true | |
environment-file: .github/workflows/conda/conda-env-macos-linux.yml | |
python-version: ${{ matrix.python-version }} | |
auto-activate-base: false | |
- name: Build hpp-fcl | |
shell: bash -el {0} | |
run: | | |
conda list | |
echo $CONDA_PREFIX | |
mkdir build | |
cd build | |
cmake .. \ | |
-G "Ninja" \ | |
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ | |
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX \ | |
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ | |
-DCMAKE_CXX_FLAGS=${{ matrix.cxx_options }} \ | |
-DPYTHON_EXECUTABLE=$(which python3) \ | |
-DGENERATE_PYTHON_STUBS=ON \ | |
-DHPP_FCL_HAS_QHULL=ON | |
cmake --build . -j2 | |
ctest --output-on-failure | |
cmake --install . | |
- name: Uninstall hpp-fcl | |
shell: bash -el {0} | |
run: | | |
cd build | |
cmake --build . --target uninstall | |
check: | |
if: always() | |
name: check-macos-linux-conda | |
needs: | |
- hpp-fcl-conda | |
runs-on: Ubuntu-latest | |
steps: | |
- name: Decide whether the needed jobs succeeded or failed | |
uses: re-actors/alls-green@release/v1 | |
with: | |
jobs: ${{ toJSON(needs) }} |