-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use standard BUILD_TESTING CMake variable and deprecate WITH_TESTS
* streamline CI configuration * set find_package to CONFIG for PDAL * use standard BUILD_TESTING cmake config variable and deprecate WITH_TESTS * BUILD_TESTING now as is standard in CMake instead of WITH_TESTS, which is not * remove extraneous include
- Loading branch information
Showing
17 changed files
with
77 additions
and
207 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Test | ||
on: [push, pull_request] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
name: OS ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
shared: [ON, OFF] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
if: matrix.os == 'windows-latest' | ||
- name: Support longpaths | ||
run: git config --system core.longpaths true | ||
if: matrix.os == 'windows-latest' | ||
- uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
init-shell: bash | ||
environment-file: ci/environment.yml | ||
environment-name: "build" | ||
cache-environment: true | ||
cache-downloads: true | ||
|
||
- name: Setup | ||
shell: bash -l {0} | ||
run: | | ||
mkdir build | ||
- name: CMake | ||
shell: bash -l {0} | ||
|
||
run: | | ||
if [ "$RUNNER_OS" == "Windows" ]; then | ||
export CC=cl.exe | ||
export CXX=cl.exe | ||
fi | ||
cmake -G "Ninja" \ | ||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
-DBUILD_SHARED_LIBS=$BUILD_SHARED_LIBS \ | ||
-DBUILD_TESTING=ON \ | ||
-DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} \ | ||
-Dgtest_force_shared_crt=ON \ | ||
.. | ||
working-directory: ./build | ||
|
||
- name: Compile | ||
shell: bash -l {0} | ||
run: | | ||
ninja | ||
working-directory: ./build | ||
|
||
- name: Test | ||
shell: bash -l {0} | ||
run: | | ||
ctest -VV --rerun-failed --output-on-failure | ||
working-directory: ./build | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.