add haskell ci cache
@@ -18,6 +18,21 @@ jobs:
steps:
- uses: actions/checkout@v2
+ - uses: actions/cache@v3
+ name: Cache ~/.stack
+ with:
+ path: ~/.stack
+ key: ${{ runner.os }}-stack-global-${{ hashFiles('stack.yaml') }}-${{ hashFiles('package.yaml') }}
+ restore-keys: |
+ ${{ runner.os }}-stack-global-
+ - uses: actions/cache@v3
+ name: Cache .stack-work
+ with:
+ path: .stack-work
+ key: ${{ runner.os }}-stack-work-${{ hashFiles('stack.yaml') }}-${{ hashFiles('package.yaml') }}-${{ hashFiles('**/*.hs') }}
+ restore-keys: |
+ ${{ runner.os }}-stack-work-
+
- uses: haskell/actions/setup@v1
with:
enable-stack: true
