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

Commit 5587534

Browse files
committed
Cache improvements
* Also support stack caching * Add `output.stack-root` in `action.yml` * Saving cache as a post-script
1 parent d85ab3c commit 5587534

16 files changed

+62764
-2594
lines changed

setup/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ inputs:
2525
description: 'If specified, enable-stack must be set. Will run stack setup to install the specified GHC'
2626
cache:
2727
required: false
28-
description: 'If specified, automatically caches the cabal-related folders.'
28+
description: 'If specified, automatically caches cabal/stack-related directories.'
2929
outputs:
3030
ghc-path:
3131
description: 'The path of the ghc executable _directory_'
@@ -35,6 +35,8 @@ outputs:
3535
description: 'The path of the stack executable _directory_'
3636
cabal-store:
3737
description: 'The path to the cabal store'
38+
stack-root:
39+
description: 'The path to the stack root'
3840
ghc-exe:
3941
description: 'The path of the ghc _executable_'
4042
cabal-exe:
@@ -44,3 +46,4 @@ outputs:
4446
runs:
4547
using: 'node12'
4648
main: 'dist/index.js'
49+
post: 'dist/save-cache.js'

setup/dist/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ inputs:
2525
description: 'If specified, enable-stack must be set. Will run stack setup to install the specified GHC'
2626
cache:
2727
required: false
28-
description: 'If specified, automatically caches the cabal-related folders.'
28+
description: 'If specified, automatically caches cabal/stack-related directories.'
2929
outputs:
3030
ghc-path:
3131
description: 'The path of the ghc executable _directory_'
@@ -35,6 +35,8 @@ outputs:
3535
description: 'The path of the stack executable _directory_'
3636
cabal-store:
3737
description: 'The path to the cabal store'
38+
stack-root:
39+
description: 'The path to the stack root'
3840
ghc-exe:
3941
description: 'The path of the ghc _executable_'
4042
cabal-exe:
@@ -44,3 +46,4 @@ outputs:
4446
runs:
4547
using: 'node12'
4648
main: 'dist/index.js'
49+
post: 'dist/save-cache.js'

0 commit comments

Comments
 (0)