Persist the make cache

If we don't do this, the test job will try to rebuild everything.
That defeats the purpose.

Probably, we've got our Make dependencies/targets setup improprerly.
This commit is contained in:
joneshf 2018-07-29 12:32:17 -07:00
parent 2fca1f2892
commit c1a34f3b86
No known key found for this signature in database
GPG Key ID: C8FFFC4E889B880E
2 changed files with 4 additions and 3 deletions

View File

@ -14,6 +14,10 @@ jobs:
- run:
name: Compile
command: make build
- persist_to_workspace:
root: .make
paths:
- '*'
- persist_to_workspace:
root: dist
paths:

View File

@ -30,9 +30,6 @@ $(EMPTY)/build: $(EMPTY)/stack-setup README.md Setup.hs package.yaml stack.yaml
cp -R $$($(STACK) $(STACK_FLAGS) path --dist-dir)/build $(DIST)/build
touch $@
$(EMPTY)/doc-test: $(EMPTY)/build
touch $@
$(EMPTY)/stack-setup: | $(EMPTY)
$(STACK) $(STACK_FLAGS) setup
touch $@