Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit 6a976ab

Browse files
committed
Apply changes from linux to macos
1 parent 6dde4cc commit 6a976ab

File tree

1 file changed

+11
-22
lines changed

1 file changed

+11
-22
lines changed

.azure/macos-stack.yml

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,31 +27,19 @@ jobs:
2727
- task: CacheBeta@0
2828
inputs:
2929
key: |
30-
"stack-root"
30+
"cache"
3131
$(Agent.OS)
3232
$(Build.SourcesDirectory)/$(YAML_FILE)
33-
path: $(STACK_ROOT).cache
34-
cacheHitVar: STACK_ROOT_RESTORED
35-
displayName: "Cache stack-root"
36-
- task: CacheBeta@0
37-
inputs:
38-
key: |
39-
"stack-work"
40-
$(Agent.OS)
41-
$(Build.SourcesDirectory)/$(YAML_FILE)
42-
path: .stack-work.cache
43-
cacheHitVar: STACK_WORK_RESTORED
44-
displayName: "Cache stack-work"
33+
path: .azure-cache
34+
cacheHitVar: CACHE_RESTORED
35+
displayName: "Download cache"
4536
- bash: |
4637
mkdir -p $STACK_ROOT
47-
tar -xzf $STACK_ROOT.cache -C $STACK_ROOT/..
48-
displayName: "Unpack STACK_ROOT cache"
49-
condition: eq(variables.STACK_ROOT_RESTORED, 'true')
50-
- bash: |
38+
tar -xzf .azure-cache/stack-root.tar.gz -C /
5139
mkdir -p .stack-work
52-
tar -xzf .stack-work.cache
53-
displayName: "Unpack .stack-work cache"
54-
condition: eq(variables.STACK_WORK_RESTORED, 'true')
40+
tar -xzf .azure-cache/stack-work.tar.gz
41+
displayName: "Unpack cache"
42+
condition: eq(variables.CACHE_RESTORED, 'true')
5543
- bash: |
5644
git submodule sync
5745
git submodule update --init
@@ -93,6 +81,7 @@ jobs:
9381
# stack test --stack-yaml $(YAML_FILE)
9482
# displayName: Run Test
9583
- bash: |
96-
tar -czf $STACK_ROOT.cache $STACK_ROOT
97-
tar -czf .stack-work.cache .stack-work
84+
mkdir .azure-cache
85+
tar -czf .azure-cache/stack-root.tar.gz $STACK_ROOT
86+
tar -czf .azure-cache/stack-work.tar.gz .stack-work
9887
displayName: "Pack cache"

0 commit comments

Comments
 (0)