Skip to content

Commit

Permalink
Github action testing (#225)
Browse files Browse the repository at this point in the history
* cmake activation

* BUILD_TESTING

* windows-latest

* remove azure pipeline integration
  • Loading branch information
hobu committed Feb 22, 2022
1 parent 8ee2236 commit 1df7af0
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 14 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

name: Test
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]

steps:
- uses: actions/checkout@v1
- name: Get latest CMake and ninja
uses: lukka/get-cmake@v3.22.2

- name: CMake
shell: bash -l {0}
run: |
mkdir build;
cd build;
cmake -G "Ninja" \
-DCMAKE_BUILD_TYPE=Debug \
-DBUILD_TESTING=ON \
-DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} \
..
- name: Compile
shell: bash -l {0}
run: |
ninja
working-directory: ./build


- name: Test
shell: bash -l {0}
run: |
ninja test
working-directory: ./build
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@
:Date: 10/23/2019

See http://libspatialindex.org for full documentation.

.. image:: https://readthedocs.org/projects/libspatialindex/badge/?version=latest
:target: https://libspatialindex.org/en/latest/?badge=latest
:alt: Documentation Status
14 changes: 0 additions & 14 deletions azure-pipelines.yml

This file was deleted.

0 comments on commit 1df7af0

Please sign in to comment.