-
Notifications
You must be signed in to change notification settings - Fork 27
67 lines (60 loc) · 1.76 KB
/
Copy pathtest.yml
File metadata and controls
67 lines (60 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Build and test
on:
pull_request:
branches: ["main"]
workflow_dispatch: {}
permissions:
contents: read
packages: write
jobs:
build-jammy:
runs-on: ubuntu-22.04
steps: &build_steps
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
cmake \
curl \
git \
libboost-all-dev \
libeigen3-dev \
libgeotiff-dev \
libgtest-dev \
liblaszip-dev \
libproj-dev \
libqhull-dev \
libtbb-dev \
libtiff-dev
- name: Build and install libnabo
run: |
git clone https://github.com/ethz-asl/libnabo.git
cd libnabo
git checkout tags/1.1.2
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
sudo make install
- name: Build and test
run: |
BUILD_ROOT="$(pwd)/build/raycloudtools"
INSTALL_ROOT="$(pwd)/install"
mkdir --parents "${BUILD_ROOT}" "${INSTALL_ROOT}"
cmake \
-B "${BUILD_ROOT}" \
-DCMAKE_INSTALL_PREFIX:STRING="${INSTALL_ROOT}" \
-DRAYCLOUD_BUILD_TESTS:BOOL=ON
make \
-C "${BUILD_ROOT}" \
-j "$(nproc)" \
install
export "LD_LIBRARY_PATH=${INSTALL_ROOT}/lib:${LD_LIBRARY_PATH}"
export "PATH=${INSTALL_ROOT}/bin:${PATH}"
cd "${INSTALL_ROOT}/bin"
"${BUILD_ROOT}/tests/raytest/raytest" --gtest_output=xml:report.xml
build-noble:
runs-on: ubuntu-24.04
steps: *build_steps