Skip to content

Commit e8fea39

Browse files
committed
Set up CI and add haddock script
1 parent 1b8c07f commit e8fea39

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: CI
2+
on: [push]
3+
jobs:
4+
tests:
5+
strategy:
6+
matrix:
7+
os: [macos-latest, ubuntu-latest]
8+
runs-on: ${{ matrix.os }}
9+
steps:
10+
- uses: actions/checkout@v1
11+
- uses: cachix/install-nix-action@v6
12+
- uses: cachix/cachix-action@v3
13+
with:
14+
name: earnestresearch-public
15+
signingKey: '${{ secrets.EARNESTRESEARCH_PUBLIC_CACHIX_SIGNING_KEY }}'
16+
file: ci.nix

ci.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
with (import ./. {});
2+
kubernetes-webhook-haskell.components.library

haddock.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
set -e
3+
4+
dir=$(mktemp -d dist-docs.XXXXXX)
5+
trap 'rm -r "$dir"' EXIT
6+
7+
# assumes cabal 2.4 or later
8+
cabal v2-haddock --builddir="$dir" --haddock-for-hackage --enable-doc
9+
10+
cabal upload -d --publish $dir/*-docs.tar.gz

0 commit comments

Comments
 (0)