diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cd9d29e..7fad2a2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,15 +43,32 @@ jobs: - name: Install shell: bash -l {0} - run: pip install . -Ccmake.define.WITH_TESTS=ON . + run: | + pip install . -Ccmake.define.WITH_TESTS=ON . + + - name: Test Unix + shell: bash -l {0} + if: matrix.platform != 'windows-latest' + run: | + export PYTHONHOME=$CONDA_PREFIX + export WHEEL_DIR=$(python -m "scikit_build_core.builder.wheel_tag") + export PDAL_DRIVER_PATH=`pwd`/build/$WHEEL_DIR + echo $PDAL_DRIVER_PATH + ls $PDAL_DRIVER_PATH + pdal --drivers + $PDAL_DRIVER_PATH/pdal_filters_python_test + $PDAL_DRIVER_PATH/pdal_io_numpy_test + - - name: Test + - name: Test Windows + if: matrix.platform == 'windows-latest' shell: bash -l {0} env: EXT: ${{ matrix.os == 'windows-latest' && '.exe' || '' }} run: | export PYTHONHOME=$CONDA_PREFIX - export PDAL_DRIVER_PATH=`pwd`/build/$(python -m "scikit_build_core.builder.wheel_tag") + export WHEEL_DIR=$(python -m "scikit_build_core.builder.wheel_tag") + export PDAL_DRIVER_PATH=`pwd`/build/$WHEEL_DIR/Release echo $PDAL_DRIVER_PATH ls $PDAL_DRIVER_PATH pdal --drivers diff --git a/pyproject.toml b/pyproject.toml index 3d63d18..7e08541 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,7 +59,7 @@ build-backend = "scikit_build_core.build" [tool.scikit-build] -build-dir = "build/{wheel_tag}" +build-dir = "build/{wheel_tag}/{build_type}" sdist.exclude = [".github"] sdist.cmake = true cmake.build-type = "Release"