summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2020-08-25 16:25:19 +0200
committerLars-Dominik Braun <lars@6xq.net>2020-08-25 17:57:53 +0200
commit03320dc7323641a769e5edcbd6faa092252c0959 (patch)
treea475a44af7f8b167e271bf98926f4c791ff18a9a
parentbe08e5482facaf8f3e773687df3ec5bb1243959c (diff)
downloadpesto-03320dc7323641a769e5edcbd6faa092252c0959.tar.gz
pesto-03320dc7323641a769e5edcbd6faa092252c0959.tar.bz2
pesto-03320dc7323641a769e5edcbd6faa092252c0959.zip
Add GitHub Actions-based CI
-rw-r--r--.github/workflows/build.yml42
-rw-r--r--[l---------]README.rst15
2 files changed, 56 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..905f39d
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,42 @@
+name: build
+on: [push, pull_request]
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ ghc: ['8.6', '8.8', '8.10']
+ cabal: ['3.0', '3.2']
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-haskell@v1
+ with:
+ ghc-version: ${{ matrix.ghc }}
+ cabal-version: ${{ matrix.cabal }}
+ - name: Cache
+ uses: actions/cache@v1
+ env:
+ cache-name: cache-cabal
+ with:
+ path: ~/.cabal
+ key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
+ restore-keys: |
+ ${{ runner.os }}-build-${{ env.cache-name }}-
+ ${{ runner.os }}-build-
+ ${{ runner.os }}-
+ - name: Install dependencies
+ run: |
+ cabal update
+ cabal build --only-dependencies --enable-tests --enable-benchmarks
+ - name: Build
+ run: cabal build --enable-tests --enable-benchmarks all
+ - name: Run tests
+ run: cabal test all
+ - name: Build documentation
+ run: cabal run pesto-doc
+ - uses: actions/upload-artifact@v2
+ with:
+ name: documentation
+ path: _build/
+
diff --git a/README.rst b/README.rst
index 8b4cb52..116df09 120000..100644
--- a/README.rst
+++ b/README.rst
@@ -1 +1,14 @@
-src/Codec/Pesto.lhs \ No newline at end of file
+Pesto
+=====
+
+.. image:: https://github.com/PromyLOPh/pesto/workflows/build/badge.svg
+
+Pesto is a text-based human-editable and machine-transformable cooking recipe
+interchange format.
+
+For more information see the latest draft_, which is rendered from its Literate
+Haskell sources_.
+
+.. _draft: https://6xq.net/pesto/
+.. _sources: https://github.com/PromyLOPh/pesto/blob/master/src/lib/Codec/Pesto.lhs
+