Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit b1308b3

Browse files
committed
Enable caching on azure pipelines
1 parent 453d77b commit b1308b3

2 files changed

Lines changed: 68 additions & 0 deletions

File tree

azure-pipelines.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ jobs:
44
pool:
55
vmImage: 'Ubuntu 16.04'
66
steps:
7+
- task: CacheBeta@0
8+
inputs:
9+
key: $(Agent.OS)
10+
path: $(HOME)/.stack
11+
displayName: Cache stack
12+
13+
- task: CacheBeta@0
14+
inputs:
15+
key: |
16+
$(Agent.OS)
17+
$(Build.SourcesDirectory)/stack.yaml.lock
18+
path: .stack-work
19+
displayName: Cache stack-work
20+
721
- script: curl -sSL https://get.haskellstack.org/ | sh
822
displayName: Install stack
923

@@ -21,6 +35,20 @@ jobs:
2135
pool:
2236
vmImage: 'macOS-10.13'
2337
steps:
38+
- task: CacheBeta@0
39+
inputs:
40+
key: $(Agent.OS)
41+
path: $(HOME)/.stack
42+
displayName: Cache stack
43+
44+
- task: CacheBeta@0
45+
inputs:
46+
key: |
47+
$(Agent.OS)
48+
$(Build.SourcesDirectory)/stack.yaml.lock
49+
path: .stack-work
50+
displayName: Cache stack-work
51+
2452
- script: curl -sSL https://get.haskellstack.org/ | sh
2553
displayName: Install stack
2654

@@ -37,6 +65,20 @@ jobs:
3765
pool:
3866
vmImage: 'VS2017-Win2016'
3967
steps:
68+
- task: CacheBeta@0
69+
inputs:
70+
key: $(Agent.OS)
71+
path: $(AppData)/stack
72+
displayName: Cache stack
73+
74+
- task: CacheBeta@0
75+
inputs:
76+
key: |
77+
$(Agent.OS)
78+
$(Build.SourcesDirectory)/stack.yaml.lock
79+
path: .stack-work
80+
displayName: Cache stack-work
81+
4082
- script: choco install haskell-stack
4183
displayName: Install stack
4284

stack.yaml.lock

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This file was autogenerated by Stack.
2+
# You should not edit this file by hand.
3+
# For more information, please see the documentation at:
4+
# https://docs.haskellstack.org/en/stable/lock_files
5+
6+
packages:
7+
- completed:
8+
hackage: ulid-0.2.0.0@sha256:ac415298b0272479909ca576f4444862ae942ed85c7849fa0675e3bf496be6f3,2485
9+
pantry-tree:
10+
size: 671
11+
sha256: cb750f111e8126188ae3d16d870471acb86a522e73d55080e8c6dbb5221d7e75
12+
original:
13+
hackage: ulid-0.2.0.0@sha256:ac415298b0272479909ca576f4444862ae942ed85c7849fa0675e3bf496be6f3
14+
- completed:
15+
hackage: crockford-0.2@sha256:6ec593711a20bd4b81a0fc13f3d850d2d890690941d777230fbf980c483e434a,553
16+
pantry-tree:
17+
size: 269
18+
sha256: b99646e3fa78b1409ff9929f2756a28bfa7e65734289c4a97aadac55a041afe1
19+
original:
20+
hackage: crockford-0.2@sha256:6ec593711a20bd4b81a0fc13f3d850d2d890690941d777230fbf980c483e434a
21+
snapshots:
22+
- completed:
23+
size: 498167
24+
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/13/20.yaml
25+
sha256: cda928d57b257a5f17bcad796843c9daa674fef47d600dbea3aa7b0e49d64a11
26+
original: lts-13.20

0 commit comments

Comments
 (0)