-
Notifications
You must be signed in to change notification settings - Fork 9
44 lines (37 loc) · 1.06 KB
/
linux.yml
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
name: Linux build
on: [push, pull_request]
jobs:
linux-build:
name: Linux build
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v2
with:
channels: conda-forge
auto-update-conda: true
- name: Install dependencies
shell: bash -l {0}
run: |
mkdir build
conda update -n base -c defaults conda
conda install -c conda-forge cmake ninja compilers -y
conda install -c conda-forge --yes --quiet pdal -y
- name: Run cmake
shell: bash -l {0}
working-directory: ./build
run: |
LDFLAGS="$LDFLAGS -Wl,-rpath-link,$CONDA_PREFIX/lib -pthread -lpthread" \
cmake -G Ninja \
-DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} \
..
- name: Build pdal_wrench
shell: bash -l {0}
working-directory: ./build
run: |
ninja
ninja install