diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1ff8e14 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,19 @@ +name: Build +on: [push, pull_request] +jobs: + + test: + runs-on: ubuntu-latest + container: nimlang/choosenim + strategy: + matrix: + threads: [on, off] + nim: [ 2.0.0, 1.6.14 ] + steps: + - uses: actions/checkout@v1 + - name: Choose Nim + run: choosenim update -y ${{ matrix.nim }} + - name: Safe git directory + run: git config --global --add safe.directory "$(pwd)" + - name: Test + run: nimble --threads:${{ matrix.threads }} test -y diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4da570e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -sudo: required -services: - - docker -before_install: - - docker pull nimlang/nim -script: - - docker run nimlang/nim nim --version - - docker run -v "$(pwd):/project" -w /project nimlang/nim sh -c "nimble install -dy && nimble test" diff --git a/README.md b/README.md index 00b101f..662d785 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ -DelaunayNim [![Build Status](https://travis-ci.org/Nycto/DelaunayNim.svg?branch=master)](https://travis-ci.org/Nycto/DelaunayNim) +DelaunayNim =========== +[![Build](https://github.com/Nycto/DelaunayNim/actions/workflows/build.yml/badge.svg)](https://github.com/Nycto/DelaunayNim/actions/workflows/build.yml) +[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/Nycto/DelaunayNim/blob/main/LICENSE.md) + A Nim library for calculating the Delaunay Triangulation of a set of points. This is accomplished using a divide and conquer algorithm, as described here: @@ -62,4 +65,3 @@ License This library is released under the MIT License, which is pretty spiffy. You should have received a copy of the MIT License along with this program. If not, see http://www.opensource.org/licenses/mit-license.php -