Skip to content

Commit 07b5214

Browse files
authored
test actions (#1)
1 parent 1868cf1 commit 07b5214

File tree

5 files changed

+32
-42
lines changed

5 files changed

+32
-42
lines changed

.github/workflows/build_nix.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ jobs:
2626
architecture: x64
2727

2828
- run: |
29+
sudo apt update && sudo apt install liblz4-dev ninja-build cmake
30+
sudo apt install g++ mesa-utils libglu1-mesa-dev freeglut3 freeglut3-dev mesa-common-dev
31+
sudo apt-get install libglew-dev libglfw3-dev libglm-dev libglx-dev
2932
curl -Lo mkn https://github.com/mkn/mkn/releases/download/latest/mkn_nix
30-
chmod +x mkn
31-
PATH="$PWD:$PATH" ./mkn.sh
32-
./mkn clean build -dtOa -fPIC -p all
33+
chmod +x mkn && PATH="$PWD:$PATH" ./mkn.sh

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22
bin
33
build
44
p
5+
include
6+
lib
7+
share

mkn.base.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
name: libpcl.base
3+
4+
property:
5+
pcl.deps: org.boost math.eigen math.flann
6+
pcl.subs: pcl&p(https://github.com/PointCloudLibrary/pcl)
7+
8+
dep: ${pcl.deps}
9+
sub: ${pcl.subs}

mkn.sh

+11-8
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
#!/usr/bin/env bash
22
set -exu
3-
CWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" && cd $CWD
3+
CWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
44

55
(
66
cd $CWD
7-
8-
MKN_REPO=$(mkn -G MKN_REPO)
9-
10-
rm -rf build && mkdir build && cd build
11-
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release \
7+
mkn -C mkn.base.yaml
8+
MKN_REPO=$(mkn -G MKN_REPO -C mkn.base.yaml)
9+
rm -rf build && mkdir build
10+
(
11+
cd build
12+
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release \
1213
-DEigen3_DIR="${MKN_REPO}/math/eigen/master/share/eigen3/cmake" \
1314
-DBoost_DIR="${MKN_REPO}/org/boost/master/lib/cmake/Boost-1.86.0" \
1415
-DFLANN_ROOT="${MKN_REPO}/math/flann/master" \
15-
-DCMAKE_INSTALL_PREFIX=$PWD ../p
16-
ninja && ninja install
16+
-DCMAKE_INSTALL_PREFIX=$CWD ../p
17+
ninja && ninja install
18+
)
19+
rm -rf build
1720
)

mkn.yaml

+5-31
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,10 @@
11

2-
32
name: libpcl
43
parent: base
5-
4+
super: mkn.base.yaml
65
profile:
76
- name: base
8-
dep: org.boost
9-
sub: pcl&p(https://github.com/PointCloudLibrary/pcl)
10-
11-
12-
- name: eigen
13-
parent: base
14-
dep: math.eigen
15-
16-
- name: common
17-
inc: p/common/include
18-
src: p/common/src
19-
lang: cpp
20-
21-
- name: filters
22-
inc: p/filters/include
23-
src: p/filters/src
24-
- name: features
25-
inc: p/features/include
26-
src: p/features/src
27-
- name: segmentation
28-
inc: p/segmentation/include
29-
src: p/segmentation/src
30-
- name: search
31-
inc: p/search/include
32-
src: p/search/src
33-
- name: kdtree
34-
inc: p/kdtree/include
35-
src: p/kdtree/src
36-
7+
inc: include
8+
path: lib
9+
dep: ${pcl.deps}
10+
sub: ${pcl.subs}

0 commit comments

Comments
 (0)