Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipDeegan committed Sep 14, 2024
0 parents commit 1868cf1
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build_nix.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.mkn
bin
build
p
17 changes: 17 additions & 0 deletions mkn.sh
Original file line number Diff line number Diff line change
@@ -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
)
36 changes: 36 additions & 0 deletions mkn.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1868cf1

Please sign in to comment.