File tree 1 file changed +17
-9
lines changed
1 file changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -22,19 +22,13 @@ jobs:
22
22
CONDA_PY : " 310"
23
23
24
24
steps :
25
- - script : echo '##vso[task.prependpath]/usr/local/miniconda/condabin'
26
- displayName : ' Set conda path'
27
-
28
- - script : rm /usr/local/miniconda/pkgs/cache/*.json
29
- displayName : ' Workaround for mamba-org/mamba#488'
30
-
31
25
- task : Cache@2
32
26
inputs :
33
27
key : sccache-0
34
28
restoreKeys : |
35
29
sccache-restore-0
36
- path : ~ /.sccache
37
- displayName : Restore Sccache
30
+ path : $(HOME) /.sccache
31
+ displayName : Restore Sccache cache
38
32
39
33
- script : |
40
34
set -eux
@@ -43,11 +37,25 @@ jobs:
43
37
curl -L https://github.com/mozilla/sccache/releases/download/$sccache_version/$sccache_archive_name.tar.gz \
44
38
| tar xzf - -O $sccache_archive_name/sccache > /usr/local/bin/sccache
45
39
chmod +x /usr/local/bin/sccache
46
- SCCACHE_IDLE_TIMEOUT=999999 SCCACHE_DIR=~ /.sccache sccache --start-server
40
+ SCCACHE_IDLE_TIMEOUT=999999 SCCACHE_DIR=$(HOME) /.sccache sccache --start-server
47
41
sccache -s
48
42
sccache -z
49
43
displayName: Setup Sccache
50
44
45
+ - task : Cache@2
46
+ inputs :
47
+ key : conda-0
48
+ restoreKeys : |
49
+ conda-restore-0
50
+ pattern : /usr/local/miniconda/pkgs/*.tar.bz2
51
+ displayName : Restore Conda package cache
52
+
53
+ - script : echo '##vso[task.prependpath]/usr/local/miniconda/condabin'
54
+ displayName : ' Set conda path asdf'
55
+
56
+ - script : rm /usr/local/miniconda/pkgs/cache/*.json
57
+ displayName : ' Workaround for mamba-org/mamba#488'
58
+
51
59
- script : |
52
60
set -eux
53
61
conda install -y -c conda-forge -n base 'mamba>=0.22' pip
You can’t perform that action at this time.
0 commit comments