-
Notifications
You must be signed in to change notification settings - Fork 0
122 lines (104 loc) · 3.34 KB
/
ci.yaml
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
ci:
strategy:
matrix:
os: [ubuntu-22.04-x86, ubuntu-22.04-arm, macos-latest, macos-14]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: apt update (Ubuntu)
if: ${{ contains(matrix.os, 'ubuntu') }}
run: sudo apt-get update
- name: Set up Homebrew (MacOS)
if: ${{ contains(matrix.os, 'macos') }}
uses: Homebrew/actions/setup-homebrew@master
- name: Brew update (MacOS)
if: ${{ contains(matrix.os, 'macos') }}
run: brew update
- name: Fix Python Conflicts (MacOS)
if: ${{ contains(matrix.os, 'macos') }}
run: |
brew unlink [email protected] || true
brew install [email protected] || true
brew link --overwrite --dry-run [email protected] || true
brew link --overwrite [email protected] || true
# Install Eigen (Cross-platform)
- name: Install Eigen
run: |
if [[ "${{ matrix.os }}" == "macos-latest" || "${{ matrix.os }}" == "macos-14" ]]; then
brew install eigen
else
sudo apt-get install -y libeigen3-dev
fi
# Install SDL2 (Cross-platform)
- name: Install SDL2
run: |
if [[ "${{ matrix.os }}" == "macos-latest" || "${{ matrix.os }}" == "macos-14" ]]; then
brew install SDL2
else
sudo apt-get install -y libsdl2-dev
fi
# Install PCL (MacOS)
- name: Install PCL (MacOS)
if: ${{ contains(matrix.os, 'macos') }}
run: |
brew install pcl
# Install PCL (Ubuntu)
- name: Install PCL (Ubuntu)
if: ${{ contains(matrix.os, 'ubuntu') }}
run: |
sudo apt install -y libboost-all-dev
git clone https://github.com/PointCloudLibrary/pcl.git
cd pcl
git checkout tags/pcl-1.14.1
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
sudo make -j$(nproc) install
# Install sdl-wrapper (Cross-platform)
- name: Install sdl-wrapper
run: |
git clone https://github.com/cornellev/sdl-wrapper.git
cd sdl-wrapper
sudo make install
# Install libcmdapp2 (Cross-platform)
- name: Install libcmdapp2
run: |
git clone https://github.com/cornellev/libcmdapp2.git
cd libcmdapp2
sudo make install
# Install libconfig (Cross-platform)
- name: Install libconfig
run: |
git clone https://github.com/cornellev/config
cd config
sudo make install
# Install simple-test (Cross-platform)
- name: Install simple-test
run: |
git clone https://github.com/cornellev/simple-test
cd simple-test
sudo make install
# Build all (Cross-platform)
- name: Build all
run: make OPT=Release
# Run tests (Cross-platform)
- name: Run tests
run: |
make test OPT=Release
make test_3d OPT=Release
make test_ply OPT=Release
# Run benchmarks (Cross-platform)
- name: Run benchmarks
run: make bench OPT=Release
# Test install (Cross-platform)
- name: Test install
run: sudo make install