-
Notifications
You must be signed in to change notification settings - Fork 9
53 lines (44 loc) · 1.24 KB
/
build.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
45
46
47
48
49
50
51
52
53
name: Build
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build:
name: Compile on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup MSVC environment
uses: ilammy/msvc-dev-cmd@v1
if: matrix.os == 'windows-latest'
- uses: mamba-org/setup-micromamba@v1
name: Setup Conda
with:
init-shell: bash
environment-file: environment.yml
environment-name: "wrench"
cache-environment: true
cache-downloads: true
- name: Run cmake
shell: bash -l {0}
working-directory: ./build
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
export CC=cl.exe
export CXX=cl.exe
fi
cmake -G Ninja \
-DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} \
..
- name: Build pdal_wrench
shell: bash -l {0}
working-directory: ./build
run: |
ninja
ninja install