git.iko.soy/typeable/pandoc
on master help sign in
Add caching for Windows stack CI.
984a06dJohn MacFarlane
.github/workflows/ci.yml+21
@@ -78,6 +78,27 @@ jobs:
78 shell: cmd
78 shell: cmd
79 run: |
79 run: |
80 choco install haskell-stack
80 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+
81 - name: Install dependencies
102 - name: Install dependencies
82 run: |
103 run: |
83 stack update
104 stack update