This repository was archived by the owner on May 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +55
-19
lines changed Expand file tree Collapse file tree 5 files changed +55
-19
lines changed Original file line number Diff line number Diff line change @@ -43,21 +43,30 @@ jobs:
43
43
Get-PSDrive
44
44
45
45
- name : Restore Conda env cache
46
- id : conda-cache
47
- uses : actions/cache@v3
46
+ id : restore- conda-cache
47
+ uses : actions/cache/restore @v3
48
48
with :
49
49
path : |
50
50
${{ env.CONDA_ENV_PATH }}
51
- key : ${{ env.RUN_STAMP }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-windows-env.yml') }}-${{ env.DATE }}
51
+ key : ${{ runner.os }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-windows-env.yml') }}-${{ env.DATE }}
52
52
restore-keys : |
53
- ${{ env.RUN_STAMP }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-windows-env.yml') }}-
53
+ ${{ runner.os }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-windows-env.yml') }}-
54
54
55
55
- name : Update Conda env
56
- if : steps.conda-cache.cache-hit != 'true'
56
+ if : steps.restore- conda-cache.outputs .cache-hit != 'true'
57
57
run : |
58
58
& $env:CONDA\condabin\conda.bat update conda
59
59
& $env:CONDA\condabin\conda.bat env update -f omniscidb/scripts/mapd-deps-conda-windows-env.yml
60
60
61
+ - name : Save Conda env cache
62
+ if : steps.restore-conda-cache.outputs.cache-hit != 'true'
63
+ uses : actions/cache/save@v3
64
+ with :
65
+ path : |
66
+ ${{ env.CONDA_ENV_PATH }}
67
+ key : ${{ runner.os }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-${{ env.DATE }}
68
+
69
+
61
70
- name : Restore Maven cache
62
71
uses : actions/cache@v3
63
72
with :
Original file line number Diff line number Diff line change @@ -44,21 +44,29 @@ jobs:
44
44
echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
45
45
46
46
- name : Restore Conda env cache
47
- id : conda-cache
48
- uses : actions/cache@v3
47
+ id : restore- conda-cache
48
+ uses : actions/cache/restore @v3
49
49
with :
50
50
path : |
51
51
${{ env.CONDA_ENV_PATH }}
52
- key : ${{ env.RUN_STAMP }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-${{ env.DATE }}
52
+ key : ${{ runner.os }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-${{ env.DATE }}
53
53
restore-keys : |
54
- ${{ env.RUN_STAMP }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-
54
+ ${{ runner.os }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-
55
55
56
56
- name : Update Conda env
57
- if : steps.conda-cache .cache-hit != 'true'
57
+ if : steps.restore- conda-cacheoutputs .cache-hit != 'true'
58
58
run : |
59
59
conda update conda
60
60
conda env update -f omniscidb/scripts/mapd-deps-conda-dev-env.yml
61
61
62
+ - name : Save Conda env cache
63
+ if : steps.restore-conda-cacheoutputs.cache-hit != 'true'
64
+ uses : actions/cache/save@v3
65
+ with :
66
+ path : |
67
+ ${{ env.CONDA_ENV_PATH }}
68
+ key : ${{ runner.os }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-${{ env.DATE }}
69
+
62
70
- name : Install cuda
63
71
if : inputs.name == 'cuda' || inputs.name == 'all-gpus'
64
72
run : |
Original file line number Diff line number Diff line change @@ -23,14 +23,33 @@ jobs:
23
23
24
24
- name : Set env context
25
25
run : |
26
- echo RUN_STAMP=${{ runner.os }}-${{ (env.cuda_compiler_version != 'None') && format('cuda{0}', env.cuda_compiler_version) || ' cpu' }} >>$GITHUB_ENV
26
+ echo RUN_STAMP=${{ runner.os }}-cpu >>$GITHUB_ENV
27
27
echo CONDA_ENV_PATH=$CONDA/envs/${{ env.CONDA_ENV }} >>$GITHUB_ENV
28
28
29
- - name : Update Conda
29
+ - name : Restore Conda env cache
30
+ id : restore-conda-cache
31
+ uses : actions/cache/restore@v3
32
+ with :
33
+ path : |
34
+ ${{ env.CONDA_ENV_PATH }}
35
+ key : ${{ runner.os }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-${{ env.DATE }}
36
+ restore-keys : |
37
+ ${{ runner.os }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-
38
+
39
+ - name : Update Conda env
40
+ if : steps.restore-conda-cache.outputs.cache-hit != 'true'
30
41
run : |
31
42
conda update conda
32
43
conda env update -f omniscidb/scripts/mapd-deps-conda-dev-env.yml
33
44
45
+ - name : Save Conda env cache
46
+ if : steps.restore-conda-cache.outputs.cache-hit != 'true'
47
+ uses : actions/cache/save@v3
48
+ with :
49
+ path : |
50
+ ${{ env.CONDA_ENV_PATH }}
51
+ key : ${{ runner.os }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-${{ env.DATE }}
52
+
34
53
- name : Restore Maven cache
35
54
uses : actions/cache@v3
36
55
with :
Original file line number Diff line number Diff line change 16
16
- name : Set env context
17
17
run : |
18
18
echo CONDA_PATH=$CONDA >>$GITHUB_ENV
19
- echo RUN_STAMP=${{ runner.os }}-${{ (env.cuda_compiler_version != 'None') && format('cuda{0}', env.cuda_compiler_version) || ' cpu' }} >>$GITHUB_ENV
19
+ echo RUN_STAMP=${{ runner.os }}-cpu >>$GITHUB_ENV
20
20
echo CONDA_ENV_PATH=$CONDA/envs/${{ env.CONDA_ENV }} >>$GITHUB_ENV
21
21
22
22
- name : Restore Conda env cache
@@ -25,23 +25,23 @@ jobs:
25
25
with :
26
26
path : |
27
27
${{ env.CONDA_ENV_PATH }}
28
- key : ${{ env.RUN_STAMP }}-conda-pytest -${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-${{ env.DATE }}
28
+ key : ${{ runner.os }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-${{ env.DATE }}
29
29
restore-keys : |
30
- ${{ env.RUN_STAMP }}-conda-pytest -${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-
30
+ ${{ runner.os }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-
31
31
32
32
- name : Update Conda env
33
- if : steps.conda-cache.cache-hit != 'true'
33
+ if : steps.restore- conda-cache.outputs .cache-hit != 'true'
34
34
run : |
35
35
conda update conda
36
36
conda env update -f omniscidb/scripts/mapd-deps-conda-dev-env.yml
37
37
38
38
- name : Save Conda env cache
39
- id : save -conda-cache
39
+ if : steps.restore -conda-cache.outputs.cache-hit != 'true'
40
40
uses : actions/cache/save@v3
41
41
with :
42
42
path : |
43
43
${{ env.CONDA_ENV_PATH }}
44
- key : ${{ env.RUN_STAMP }}-conda-pytest -${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-${{ env.DATE }}
44
+ key : ${{ runner.os }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-${{ env.DATE }}
45
45
46
46
- name : Restore Maven cache
47
47
uses : actions/cache@v3
Original file line number Diff line number Diff line change 35
35
with :
36
36
path : |
37
37
${{ env.CONDA_ENV_PATH }}
38
- key : ${{ env.RUN_STAMP }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-${{ inputs.cache-suffix }}
38
+ key : ${{ runner.os }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-${{ inputs.cache-suffix }}
39
39
40
40
- name : C++ style check
41
41
if : inputs.test == 'style'
You can’t perform that action at this time.
0 commit comments