Skip to content

Commit

Permalink
Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
stla committed Nov 15, 2023
1 parent 05efd6e commit 0c13671
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 3 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/Stack-lts-Mac.yml
@@ -0,0 +1,38 @@
name: Stack-lts-Mac

on:
pull_request:
push:
branches: [main, master]

jobs:
test:
strategy:
matrix:
runner:
- macOS-latest

resolver:
- lts # ghc-9.4 (as of writing)
- lts-21.20 # ghc 9.4.7
- lts-21.11 # ghc-9.4.6
- lts-20.26 # ghc-9.2
- lts-19.33 # ghc-9.0

fail-fast: false

runs-on: ${{ matrix.runner }}

steps:
- uses: actions/checkout@v3
- uses: freckle/stack-action@v3

- id: stack
uses: freckle/stack-action@v3
with:
stack-arguments: --resolver ${{ matrix.resolver }} --copy-bins --coverage

- uses: actions/upload-artifact@v2
with:
name: coverage-report
path: ${{ steps.stack.outputs.local-hpc-root }}
39 changes: 39 additions & 0 deletions .github/workflows/Stack-lts.yml
@@ -0,0 +1,39 @@
name: Stack-lts

on:
pull_request:
push:
branches: [main, master]

jobs:
test:
strategy:
matrix:
runner:
- ubuntu-latest
- windows-latest

resolver:
- lts # ghc-9.4 (as of writing)
- lts-21.20 # ghc 9.4.7
- lts-21.11 # ghc-9.4.6
- lts-20.26 # ghc-9.2
- lts-19.33 # ghc-9.0

fail-fast: false

runs-on: ${{ matrix.runner }}

steps:
- uses: actions/checkout@v3
- uses: freckle/stack-action@v3

- id: stack
uses: freckle/stack-action@v3
with:
stack-arguments: --resolver ${{ matrix.resolver }} --copy-bins --coverage

- uses: actions/upload-artifact@v2
with:
name: coverage-report
path: ${{ steps.stack.outputs.local-hpc-root }}
33 changes: 33 additions & 0 deletions .github/workflows/Stack-nightly.yml
@@ -0,0 +1,33 @@
name: Stack-nightly

on:
pull_request:
push:
branches: [main, master]

jobs:
test:
strategy:
matrix:
runner:
- ubuntu-latest
- macOS-latest
- windows-latest

fail-fast: false

runs-on: ${{ matrix.runner }}

steps:
- uses: actions/checkout@v3
- uses: freckle/stack-action@v3

- id: stack
uses: freckle/stack-action@v3
with:
stack-arguments: --resolver nightly --copy-bins --coverage

- uses: actions/upload-artifact@v2
with:
name: coverage-report
path: ${{ steps.stack.outputs.local-hpc-root }}
12 changes: 9 additions & 3 deletions README.md
@@ -1,13 +1,21 @@
# delaunayNd

<!-- badges: start -->
[![Stack-lts](https://github.com/stla/delaunayNd/actions/workflows/Stack-lts.yml/badge.svg)](https://github.com/stla/delaunayNd/actions/workflows/Stack-lts.yml)
[![Stack-lts-Mac](https://github.com/stla/delaunayNd/actions/workflows/Stack-lts-Mac.yml/badge.svg)](https://github.com/stla/delaunayNd/actions/workflows/Stack-lts-Mac.yml)
[![Stack-nightly](https://github.com/stla/delaunayNd/actions/workflows/Stack-nightly.yml/badge.svg)](https://github.com/stla/delaunayNd/actions/workflows/Stack-nightly.yml)
<!-- badges: end -->

Delaunay tessellation in arbitrary dimension.
Based on the `qhull` C library.

## Delaunay tesselation
___

Consider this list of vertices (actually these are the vertices of a
polyhedron):

```haskell
vertices :: [[Double]]
vertices = [
[ -5, -5, 16 ] -- 0
, [ -5, 8, 3 ] -- 1
Expand Down Expand Up @@ -148,5 +156,3 @@ vertex belongs to;

- `_neightilesIds`, the set of the identifiers of the tiles the vertex belongs
to.

[![gfycat](https://thumbs.gfycat.com/FreeFaithfulArgali-size_restricted.gif)](https://gfycat.com/FreeFaithfulArgali)

0 comments on commit 0c13671

Please sign in to comment.