--- version: 2.0 jobs: build: docker: - image: fpco/stack-build:lts steps: - checkout - run: name: Source digest command: git ls-files | xargs md5sum > digest - restore_cache: keys: - stack-{{ .Branch }}-{{ checksum "digest" }} - stack-{{ .Branch }} - stack- - run: name: Dependencies command: make setup - run: name: Build command: make build - save_cache: key: stack-{{ .Branch }}-{{ checksum "digest" }} paths: - ~/.stack - ./.stack-work - run: name: Test command: make test - run: name: Lint command: make lint - run: name: Build Nightly command: make check-nightly