File tree Expand file tree Collapse file tree 2 files changed +27
-9
lines changed
Expand file tree Collapse file tree 2 files changed +27
-9
lines changed Original file line number Diff line number Diff line change @@ -68,19 +68,28 @@ jobs:
6868 # if: ${{ matrix.python-version == '3.6' }}
6969 # with:
7070 # extra_args: --all -c .pre-commit-config-gh-${{ matrix.python-version }}.yaml
71- - name : CPU database cache
72- id : cache-cpu-databases
73- uses : actions/cache@v5
71+ - name : CPU database cache restore
72+ id : cache-cpu-databases-restore
73+ uses : actions/cache/restore @v5
7474 with :
7575 path : |
7676 cpumark_table.csv
7777 cpu-spec-dataset
7878 key : cpu_databases
7979 - name : CPU database population
80- if : steps.cache-cpu-databases.outputs.cache-hit != 'true'
80+ if : steps.cache-cpu-databases-restore .outputs.cache-hit != 'true'
8181 run : |
8282 python -m treecript.tdp_sources cpumark_table.tsv
8383 git clone https://github.com/JosuaCarl/cpu-spec-dataset
84+ - name : CPU database cache save
85+ if : steps.cache-cpu-databases-restore.outputs.cache-hit != 'true'
86+ id : cache-cpu-databases-save
87+ uses : actions/cache/save@v5
88+ with :
89+ path : |
90+ cpumark_table.csv
91+ cpu-spec-dataset
92+ key : ${{ steps.cache-cpu-databases-restore.outputs.cache-primary-key }}
8493 - name : ' pytest + coverage (${{ matrix.python-version }})'
8594 run : |
8695 CACHED_CPU_SPEC_DATASET=${PWD}/cpu-spec-dataset CACHED_CPUMARK_DATASET=${PWD}/cpumark_table.tsv pytest --cov=treecript
Original file line number Diff line number Diff line change @@ -132,16 +132,16 @@ jobs:
132132 source .env/bin/activate
133133
134134 pre-commit run -a
135- - name : CPU database cache
136- id : cache-cpu-databases
137- uses : actions/cache@v5
135+ - name : CPU database cache restore
136+ id : cache-cpu-databases-restore
137+ uses : actions/cache/restore @v5
138138 with :
139139 path : |
140140 the_repo/cpumark_table.csv
141141 the_repo/cpu-spec-dataset
142- key : cpu_databases
142+ key : cpu_databases_wsl
143143 - name : CPU database population
144- if : steps.cache-cpu-databases.outputs.cache-hit != 'true'
144+ if : steps.cache-cpu-databases-restore .outputs.cache-hit != 'true'
145145 shell : wsl-bash {0}
146146 run : |
147147 source ~/.bash_profile
@@ -150,6 +150,15 @@ jobs:
150150
151151 python -m treecript.tdp_sources cpumark_table.tsv
152152 git clone https://github.com/JosuaCarl/cpu-spec-dataset
153+ - name : CPU database cache save
154+ if : steps.cache-cpu-databases-restore.outputs.cache-hit != 'true'
155+ id : cache-cpu-databases-save
156+ uses : actions/cache/save@v5
157+ with :
158+ path : |
159+ the_repo/cpumark_table.csv
160+ the_repo/cpu-spec-dataset
161+ key : ${{ steps.cache-cpu-databases-restore.outputs.cache-primary-key }}
153162 - name : ' pytest + coverage (${{ matrix.python-version }})'
154163 shell : wsl-bash {0}
155164 run : |
You can’t perform that action at this time.
0 commit comments