From 1868cf159a6c0269b075978c286b41ed281608d9 Mon Sep 17 00:00:00 2001 From: PhilipDeegan Date: Sat, 14 Sep 2024 22:09:53 +0200 Subject: [PATCH] init --- .github/workflows/build_nix.yml | 32 +++++++++++++++++++++++++++++ .gitignore | 4 ++++ mkn.sh | 17 ++++++++++++++++ mkn.yaml | 36 +++++++++++++++++++++++++++++++++ 4 files changed, 89 insertions(+) create mode 100644 .github/workflows/build_nix.yml create mode 100644 .gitignore create mode 100755 mkn.sh create mode 100644 mkn.yaml diff --git a/.github/workflows/build_nix.yml b/.github/workflows/build_nix.yml new file mode 100644 index 0000000..7be7516 --- /dev/null +++ b/.github/workflows/build_nix.yml @@ -0,0 +1,32 @@ + +name: Build on Ubuntu + +on: + pull_request: + +jobs: + build: + name: Python ${{ matrix.python-version }} + runs-on: ubuntu-latest + + strategy: + fail-fast: false + max-parallel: 4 + matrix: + python-version: ['3.11'] + + steps: + - uses: actions/checkout@v4 + with: + submodules: true + + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + architecture: x64 + + - run: | + curl -Lo mkn https://github.com/mkn/mkn/releases/download/latest/mkn_nix + chmod +x mkn + PATH="$PWD:$PATH" ./mkn.sh + ./mkn clean build -dtOa -fPIC -p all diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ed94ba1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.mkn +bin +build +p diff --git a/mkn.sh b/mkn.sh new file mode 100755 index 0000000..9aa1b85 --- /dev/null +++ b/mkn.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +set -exu +CWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" && cd $CWD + +( + cd $CWD + + MKN_REPO=$(mkn -G MKN_REPO) + + rm -rf build && mkdir build && cd build + cmake -G Ninja -DCMAKE_BUILD_TYPE=Release \ + -DEigen3_DIR="${MKN_REPO}/math/eigen/master/share/eigen3/cmake" \ + -DBoost_DIR="${MKN_REPO}/org/boost/master/lib/cmake/Boost-1.86.0" \ + -DFLANN_ROOT="${MKN_REPO}/math/flann/master" \ + -DCMAKE_INSTALL_PREFIX=$PWD ../p + ninja && ninja install +) diff --git a/mkn.yaml b/mkn.yaml new file mode 100644 index 0000000..7043854 --- /dev/null +++ b/mkn.yaml @@ -0,0 +1,36 @@ + + +name: libpcl +parent: base + +profile: +- name: base + dep: org.boost + sub: pcl&p(https://github.com/PointCloudLibrary/pcl) + + +- name: eigen + parent: base + dep: math.eigen + +- name: common + inc: p/common/include + src: p/common/src + lang: cpp + +- name: filters + inc: p/filters/include + src: p/filters/src +- name: features + inc: p/features/include + src: p/features/src +- name: segmentation + inc: p/segmentation/include + src: p/segmentation/src +- name: search + inc: p/search/include + src: p/search/src +- name: kdtree + inc: p/kdtree/include + src: p/kdtree/src +