@@ -78,6 +78,27 @@ jobs:
78 shell: cmd
78 shell: cmd
80 choco install haskell-stack
80 choco install haskell-stack
82+ # declare/restore cached things
83+ # caching doesn't work for scheduled runs yet
84+ # https://github.com/actions/cache/issues/63
86+ - name: Cache stack global package db
87+ id: stack-global-package-db
88+ uses: actions/cache@v1
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
94+ # stack's local package dbs for the project and each package
95+ - name: Cache .stack-work
96+ uses: actions/cache@v1
99+ key: ${{ runner.os }}-stack-work-${{ hashFiles('**.yaml') }}
100+ restore-keys: ${{ runner.os }}-stack-work
81 - name: Install dependencies
102 - name: Install dependencies
83 stack update
104 stack update