Skip to content

compiler toolchain tweaks #20

compiler toolchain tweaks

compiler toolchain tweaks #20

Workflow file for this run

name: Pybind tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Build sophus_pybind on ${{ matrix.os }} / ${{ matrix.cmakeOptions }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, macos-13]
fail-fast: false
steps:
- name : Checkout
uses: actions/checkout@v2
with:
submodules: 'true'
- name: Install dependencies
shell: bash
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
# Update & upgrade package lists
sudo apt-get update -y
sudo apt-get upgrade
# Deal with Github CI limitation
# https://github.com/actions/runner-images/issues/6399#issuecomment-1285011525
sudo apt install -y libunwind-dev
# Generic dependencies
sudo apt-get install cmake libeigen3-dev libfmt-dev
# Clean APT cache
sudo apt-get clean
elif [ "$RUNNER_OS" == "macOS" ]; then
# Install system deps with Homebrew
brew install cmake
# VRS dependencies
brew install eigen fmt lz4 zstd xxhash
else
echo "$RUNNER_OS not supported"
exit 1
fi
- name: Install sophus_pybind
shell: bash
run: |
# Installing Python and dependencies
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get install libpython3-dev python3-pip
sudo pip3 install numpy pytest
elif [ "$RUNNER_OS" == "macOS" ]; then
pip3 install numpy pytest
else
echo "$RUNNER_OS not supported"
exit 1
fi
# Build and install Python bindings
pip3 install .
- name: Run sophus_pybind tests
shell: bash
run: python3 -m pytest sophus_pybind/tests/sophusPybindTests.py