This repository was archived by the owner on Oct 7, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +65
-3
lines changed Expand file tree Collapse file tree 4 files changed +65
-3
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,30 @@ jobs:
25
25
YAML_FILE : stack-8.4.2.yaml
26
26
stack-8.2.2 :
27
27
YAML_FILE : stack-8.2.2.yaml
28
+ variables :
29
+ STACK_ROOT : /home/vsts/.stack
28
30
steps :
31
+ - task : CacheBeta@0
32
+ inputs :
33
+ key : |
34
+ "cache"
35
+ $(Agent.OS)
36
+ $(Build.SourcesDirectory)/$(YAML_FILE)
37
+ path : .azure-cache
38
+ cacheHitVar : CACHE_RESTORED
39
+ displayName : " Download cache"
40
+ - bash : |
41
+ mkdir -p $STACK_ROOT
42
+ tar -xzf .azure-cache/stack-root.tar.gz -C /
43
+ mkdir -p .stack-work
44
+ tar -xzf .azure-cache/stack-work.tar.gz
45
+ displayName: "Unpack cache"
46
+ condition: eq(variables.CACHE_RESTORED, 'true')
29
47
- bash : |
30
48
git submodule sync
31
49
git submodule update --init
32
50
displayName: Sync submodules
33
51
- bash : |
34
- export STACK_ROOT="$(Build.SourcesDirectory)"/.stack-root
35
52
mkdir -p ~/.local/bin
36
53
curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | \
37
54
tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
66
83
# source .azure/linux.bashrc
67
84
# stack test --stack-yaml $(YAML_FILE)
68
85
# displayName: Run Test
86
+ - bash : |
87
+ mkdir -p .azure-cache
88
+ tar -czf .azure-cache/stack-root.tar.gz $STACK_ROOT
89
+ tar -czf .azure-cache/stack-work.tar.gz .stack-work
90
+ displayName: "Pack cache"
Original file line number Diff line number Diff line change @@ -21,13 +21,30 @@ jobs:
21
21
YAML_FILE : stack-8.4.2.yaml
22
22
stack-8.2.2 :
23
23
YAML_FILE : stack-8.2.2.yaml
24
+ variables :
25
+ STACK_ROOT : /Users/vsts/.stack
24
26
steps :
27
+ - task : CacheBeta@0
28
+ inputs :
29
+ key : |
30
+ "cache"
31
+ $(Agent.OS)
32
+ $(Build.SourcesDirectory)/$(YAML_FILE)
33
+ path : .azure-cache
34
+ cacheHitVar : CACHE_RESTORED
35
+ displayName : " Download cache"
36
+ - bash : |
37
+ mkdir -p $STACK_ROOT
38
+ tar -xzf .azure-cache/stack-root.tar.gz -C /
39
+ mkdir -p .stack-work
40
+ tar -xzf .azure-cache/stack-work.tar.gz
41
+ displayName: "Unpack cache"
42
+ condition: eq(variables.CACHE_RESTORED, 'true')
25
43
- bash : |
26
44
git submodule sync
27
45
git submodule update --init
28
46
displayName: Sync submodules
29
47
- bash : |
30
- export STACK_ROOT="$(Build.SourcesDirectory)"/.stack-root
31
48
mkdir -p ~/.local/bin
32
49
curl -skL https://get.haskellstack.org/stable/osx-x86_64.tar.gz | \
33
50
tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin;
63
80
# source .azure/macos.bashrc
64
81
# stack test --stack-yaml $(YAML_FILE)
65
82
# displayName: Run Test
83
+ - bash : |
84
+ mkdir -p .azure-cache
85
+ tar -czf .azure-cache/stack-root.tar.gz $STACK_ROOT
86
+ tar -czf .azure-cache/stack-work.tar.gz .stack-work
87
+ displayName: "Pack cache"
Original file line number Diff line number Diff line change 23
23
YAML_FILE : stack-8.4.2.yaml
24
24
stack-8.2.2 :
25
25
YAML_FILE : stack-8.2.2.yaml
26
+ variables :
27
+ STACK_ROOT : " C:\\ sr"
28
+
26
29
steps :
30
+ - task : CacheBeta@0
31
+ inputs :
32
+ key : |
33
+ "stack-root"
34
+ $(Agent.OS)
35
+ $(Build.SourcesDirectory)/$(YAML_FILE)
36
+ path : $(STACK_ROOT)
37
+ displayName : " Cache stack-root"
38
+ - task : CacheBeta@0
39
+ inputs :
40
+ key : |
41
+ "stack-work"
42
+ $(Agent.OS)
43
+ $(Build.SourcesDirectory)/$(YAML_FILE)
44
+ path : .stack-work
45
+ displayName : " Cache stack-work"
27
46
- bash : |
28
47
git submodule sync
29
48
git submodule update --init
Original file line number Diff line number Diff line change 1
- export STACK_ROOT="C:\\sr"
2
1
export LOCAL_BIN_PATH=$(cygpath $APPDATA\\local\\bin)
3
2
export Z3_BIN_PATH=/usr/local/z3-4.8.5-x64-win/bin
4
3
export PATH=$Z3_BIN_PATH:$LOCAL_BIN_PATH:$PATH
You can’t perform that action at this time.
0 commit comments