Skip to content

Commit

Permalink
Set PDAL_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
pomadchin committed Jan 8, 2024
1 parent 0a92288 commit 83f9d12
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,27 @@ jobs:

- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
auto-activate-base: true
# auto-update-conda: true
# auto-activate-base: true
activate-environment: "pdal-java"
channels: conda-forge

- name: Install PDAL
run: conda install pdal=${{ matrix.pdal }}

- name: Check formatting
run: sbt scalafmtCheckAll
# - name: Check formatting
# run: sbt scalafmtCheckAll

- name: Build project
run: sbt +test
run: |
# export PDAL_DIR=$CONDAenvs/pdal-java/
echo "CONA: $CONDA"
ls $CONDA
echo "========"
ls ${CONDA}/envs
echo "======="
which pdal
sbt +test
- uses: actions/upload-artifact@v3
with:
Expand Down
4 changes: 4 additions & 0 deletions native/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ if (JNI_FOUND)
endif()

if (NOT PDAL_BUILD)
if(DEFINED ENV{PDAL_DIR})
set(PDAL_DIR "$ENV{PDAL_DIR}")
endif()

find_package(PDAL 2.0.0 REQUIRED CONFIG)
endif()

Expand Down

0 comments on commit 83f9d12

Please sign in to comment.