summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.circleci/config.yml19
-rwxr-xr-x.circleci/tickle.sh24
-rw-r--r--.github/workflows/main.yml15
3 files changed, 15 insertions, 43 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
deleted file mode 100644
index 6e686b2..0000000
--- a/.circleci/config.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-version: 2
-jobs:
- build:
- docker:
- - image: 'fpco/stack-build:latest'
- steps:
- - checkout
- - restore_cache:
- key: 'v3-hakyll-{{ arch }}-{{ .Branch }}'
- - run:
- # We set jobs to 1 here because that prevents Out-Of-Memory exceptions
- # while compiling dependencies.
- name: 'Install dependencies'
- command: '.circleci/tickle.sh stack build --test --copy-bins --jobs=1'
- - save_cache:
- key: 'v3-hakyll-{{ arch }}-{{ .Branch }}-{{ .Revision }}'
- paths:
- - '~/.stack-work'
- - '~/.stack'
diff --git a/.circleci/tickle.sh b/.circleci/tickle.sh
deleted file mode 100755
index 195c29c..0000000
--- a/.circleci/tickle.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash
-set -o nounset -o errexit -o pipefail
-
-function tickle() {
- while [ true ]; do
- echo "[$(date +%H:%M:%S)] Tickling..."
- sleep 60
- done
-}
-
-echo "Forking tickle process..."
-tickle &
-TICKLE_PID=$!
-
-echo "Forking build process..."
-eval $@ &
-BUILD_PID=$!
-
-echo "Waiting for build thread ($BUILD_PID)..."
-wait $BUILD_PID
-
-echo "Killing tickle thread ($TICKLE_PID)..."
-kill $TICKLE_PID
-echo "All done!"
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..a8f85e0
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,15 @@
+name: 'CI'
+on:
+- 'push'
+jobs:
+ build:
+ runs-on: 'ubuntu-latest'
+ steps:
+ - uses: 'actions/checkout@v1'
+ - uses: 'mstksg/setup-stack@v1'
+ - uses: 'actions/cache@v1'
+ with:
+ path: '$HOME/.stack'
+ key: "${{ runner.os }}-v1-stack-${{ hashFiles('stack.yaml') }}"
+ restore-keys: '${{ runner.os }}-v1-stack'
+ - run: 'stack build --test'