Use the cache to circumvent building

Since we use `stack` to run `hpack` to generate the cabal file,
we need `stack` to have its cache all setup properly.

We could eschew `hpack` to relax this requirement...
This commit is contained in:
joneshf 2018-07-29 09:22:00 -07:00
parent d5b10959b1
commit 73e6221fb6
No known key found for this signature in database
GPG Key ID: C8FFFC4E889B880E

View File

@ -5,6 +5,12 @@ jobs:
- image: haskell:8.2.2
steps:
- checkout
- restore_cache:
keys:
- v1-stack-{{ checksum "package.yaml" }}-{{ checksum "stack.yaml" }}
- v1-stack-{{ checksum "package.yaml" }}-
- v1-stack-
name: Restoring stack cache
- run:
name: Build sdist
command: make sdist