Improve CI on osx.

Former-commit-id: 83c49ae5730cc376a6a1f9a2ae3fdc7e0a7586f5
This commit is contained in:
David Himmelstrup 2020-05-30 22:43:21 +08:00
commit 248ef257eb

View file

@ -30,6 +30,9 @@ jobs:
mkdir -p ~/.local/bin
curl -skL https://get.haskellstack.org/stable/osx-x86_64.tar.gz | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin;
export PATH=$HOME/.local/bin:$PATH
# Check if the cache has been corrupted. Delete it if it has.
stack exec ghc -- --version || rm -fr $(STACK_ROOT)
stack --install-ghc test $ARGS --flag reanimate:test --only-dependencies
stack ./examples/counter.hs check
stack test --flag reanimate:test --test-arguments="-j2"