This repository was archived by the owner on May 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +49
-12
lines changed Expand file tree Collapse file tree 4 files changed +49
-12
lines changed Original file line number Diff line number Diff line change 44
44
45
45
- name : Restore Conda env cache
46
46
id : conda-cache
47
- uses : actions/cache@v3
47
+ uses : actions/cache/restore @v3
48
48
with :
49
49
path : |
50
50
${{ env.CONDA_ENV_PATH }}
@@ -53,11 +53,20 @@ jobs:
53
53
${{ env.RUN_STAMP }}-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.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.conda-cache.outputs.cache-hit != 'true'
63
+ uses : actions/cache/save@v3
64
+ with :
65
+ path : |
66
+ ${{ env.CONDA_ENV_PATH }}
67
+ key : ${{ env.RUN_STAMP }}-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 45
45
46
46
- name : Restore Conda env cache
47
47
id : conda-cache
48
- uses : actions/cache@v3
48
+ uses : actions/cache/restore @v3
49
49
with :
50
50
path : |
51
51
${{ env.CONDA_ENV_PATH }}
54
54
${{ env.RUN_STAMP }}-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.conda-cache.outputs. 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
80
80
sudo dpkg -i intel-igc-core_1.0.12812.24_amd64.deb intel-level-zero-gpu_1.3.25018.24_amd64.deb libigdgmm12_22.3.0_amd64.deb intel-igc-opencl_1.0.12812.24_amd64.deb
81
81
conda install -n omnisci-dev -c conda-forge level-zero-devel pkg-config
82
82
83
+ - name : Save Conda env cache
84
+ if : steps.conda-cache.outputs.cache-hit != 'true'
85
+ uses : actions/cache/save@v3
86
+ with :
87
+ path : |
88
+ ${{ env.CONDA_ENV_PATH }}
89
+ key : ${{ env.RUN_STAMP }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-${{ env.DATE }}
90
+
91
+
83
92
- name : Restore Maven cache
84
93
uses : actions/cache@v3
85
94
with :
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 : ${{ env.RUN_STAMP }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-${{ env.DATE }}
36
+ restore-keys : |
37
+ ${{ env.RUN_STAMP }}-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 : ${{ env.RUN_STAMP }}-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 : ${{ env.RUN_STAMP }}-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
+ ${{ env.RUN_STAMP }}-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 : ${{ env.RUN_STAMP }}-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
You can’t perform that action at this time.
0 commit comments