Skip to content

Commit 890f616

Browse files
authored
Merge pull request #4 from EarnestResearch/ci
Set up CI and add haddock script
2 parents 1b8c07f + 0a19e28 commit 890f616

File tree

4 files changed

+37
-9
lines changed

4 files changed

+37
-9
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

nix/sources.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"homepage": null,
66
"owner": "EarnestResearch",
77
"repo": "er-nix",
8-
"rev": "f8e297f0f2499cc63b59558c9b0eff440318981b",
9-
"sha256": "11kw6djayshidkzqq3d5lqvhhd84wa885dzz71nsrx6hpp2nh5h7",
8+
"rev": "68163887c5073c278e34f335ba5e3a6b9d027e4d",
9+
"sha256": "0xcxsdf45bl56lmid0i0gwb7q0jx5rfz7ld9f2j3xjyakaqa2c5q",
1010
"type": "tarball",
11-
"url": "https://github.com/EarnestResearch/er-nix/archive/f8e297f0f2499cc63b59558c9b0eff440318981b.tar.gz",
11+
"url": "https://github.com/EarnestResearch/er-nix/archive/68163887c5073c278e34f335ba5e3a6b9d027e4d.tar.gz",
1212
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
1313
},
1414
"niv": {
@@ -17,10 +17,10 @@
1717
"homepage": "https://github.com/nmattia/niv",
1818
"owner": "nmattia",
1919
"repo": "niv",
20-
"rev": "49157afd2298749b8a5062fd21079542a6b2de35",
21-
"sha256": "0q7ymfrcgagcsw6kr93kprag7k358qj8znyzyri53ci1mrsak5y1",
20+
"rev": "2ecfd86b631714b457e56d70dd83fa60435baeb6",
21+
"sha256": "01j6727cws8blg1npp54b4w6xa0gpgyzhyws2vqgp8clnlnmqqhi",
2222
"type": "tarball",
23-
"url": "https://github.com/nmattia/niv/archive/49157afd2298749b8a5062fd21079542a6b2de35.tar.gz",
23+
"url": "https://github.com/nmattia/niv/archive/2ecfd86b631714b457e56d70dd83fa60435baeb6.tar.gz",
2424
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
2525
},
2626
"nixpkgs": {
@@ -29,10 +29,10 @@
2929
"homepage": "https://github.com/NixOS/nixpkgs",
3030
"owner": "NixOS",
3131
"repo": "nixpkgs-channels",
32-
"rev": "274e095f761b2da76a376d105c41591739350b14",
33-
"sha256": "0iw0k1a28ff7qwh3pi7kzlgrgjr61q46qnaryv25m78iig2lkp1y",
32+
"rev": "ea553d8c67c6a718448da50826ff5b6916dc9c59",
33+
"sha256": "0g9smv36sk42rfyzi8wyq2wl11c5l0qaldij1zjdj60s57cl3wgj",
3434
"type": "tarball",
35-
"url": "https://github.com/NixOS/nixpkgs-channels/archive/274e095f761b2da76a376d105c41591739350b14.tar.gz",
35+
"url": "https://github.com/NixOS/nixpkgs-channels/archive/ea553d8c67c6a718448da50826ff5b6916dc9c59.tar.gz",
3636
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
3737
}
3838
}

0 commit comments

Comments
 (0)