@@ -78,6 +78,27 @@ jobs:
7878 shell: cmd
7979 run: |
8080 choco install haskell-stack
81+
82+ # declare/restore cached things
83+ # caching doesn't work for scheduled runs yet
84+ # https://github.com/actions/cache/issues/63
85+
86+ - name: Cache stack global package db
87+ id: stack-global-package-db
88+ uses: actions/cache@v1
89+ with:
90+ path: C:\Users\runneradmin\AppData\Roaming\stack\
91+ key: ${{ runner.os }}-appdata-roaming-stack-${{ hashFiles('**.yaml') }}
92+ restore-keys: ${{ runner.os }}-appdata-roaming-stack
93+
94+ # stack's local package dbs for the project and each package
95+ - name: Cache .stack-work
96+ uses: actions/cache@v1
97+ with:
98+ path: .stack-work
99+ key: ${{ runner.os }}-stack-work-${{ hashFiles('**.yaml') }}
100+ restore-keys: ${{ runner.os }}-stack-work
101+
81102 - name: Install dependencies
82103 run: |
83104 stack update