blob: 907039d20d5ea3825743a735c3ba4818824f5551 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
version: 2
workflows:
version: 2
simple-workflow:
jobs:
- build:
filters:
tags:
only: /.*/
jobs:
build:
docker:
- image: 'fpco/stack-build:latest'
steps:
# 'checkout' command is currently broken because the Docker image stopped
# providing 'ssh'. We do a manual checkout instead.
# - checkout
- run:
name: 'Checkout'
command: 'git clone https://github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME.git .'
- restore_cache:
key: 'v2-stylish-haskell-{{ arch }}-{{ .Branch }}'
- run:
name: 'Build, install and test'
command: 'stack build --test --copy-bins --jobs=1'
- save_cache:
key: 'v2-stylish-haskell-{{ arch }}-{{ .Branch }}-{{ .Revision }}'
paths:
- '~/.stack-work'
- '~/.stack'
- run:
name: 'Upload release'
command: '.circleci/release.sh "$CIRCLE_TAG"'
|