Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit d85ab3c

Browse files
committed
Add 'cabal: true' option to enable caching
* Caches `output.cabal-store` and `./dist-newstyle` * Currently `hashFiles` is not exposed in the actions/cache API, hence the use of `folder-hash.hashElements`
1 parent 0386b0a commit d85ab3c

File tree

13 files changed

+63338
-10159
lines changed

13 files changed

+63338
-10159
lines changed

setup/.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ lib/
33
.out/
44
__tests__/
55
node_modules/
6+
*.json

setup/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ inputs:
2323
stack-setup-ghc:
2424
required: false
2525
description: 'If specified, enable-stack must be set. Will run stack setup to install the specified GHC'
26+
cache:
27+
required: false
28+
description: 'If specified, automatically caches the cabal-related folders.'
2629
outputs:
2730
ghc-path:
2831
description: 'The path of the ghc executable _directory_'

setup/dist/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ inputs:
2323
stack-setup-ghc:
2424
required: false
2525
description: 'If specified, enable-stack must be set. Will run stack setup to install the specified GHC'
26+
cache:
27+
required: false
28+
description: 'If specified, automatically caches the cabal-related folders.'
2629
outputs:
2730
ghc-path:
2831
description: 'The path of the ghc executable _directory_'

0 commit comments

Comments
 (0)