From e0e2e58551b2a5090820804d771013bd96d187ac Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Wed, 26 Feb 2020 16:01:23 +0100 Subject: Replace CircleCI with GitHub Actions --- .circleci/config.yml | 19 ------------------- .circleci/tickle.sh | 24 ------------------------ .github/workflows/main.yml | 15 +++++++++++++++ 3 files changed, 15 insertions(+), 43 deletions(-) delete mode 100644 .circleci/config.yml delete mode 100755 .circleci/tickle.sh create mode 100644 .github/workflows/main.yml 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' -- cgit v1.2.3