version: 2.1 jobs: build: docker: - image: fpco/stack-build:lts steps: - checkout - restore_cache: name: Restore Cached Dependencies keys: - cci-demo-haskell-v1-{{ checksum "LtuPatternFactory.cabal" }} - run: name: Init Stack.yaml command: stack init - run: name: Resolve/Update Dependencies command: stack setup - run: name: Run tests command: stack test - run: name: Install executable command: stack install - save_cache: name: Cache Dependencies key: cci-demo-haskell-v1-{{ checksum "LtuPatternFactory.cabal" }} paths: - ".stack-work" - store_artifacts: # upload build artifact for display in CircleCI path: ~/.local/bin/LtuPatternFactory destination: LtuPatternFactory