Skip to content

Commit a9ebb19

Browse files
netomisschuberth
authored andcommitted
Add ORT_HOME_PATH/cache to the locations for the GH cache
Some package managers stores downloaded artifacts in the ORT_HOME_PATH/cache directory for faster access after the first run, one example being the maven package manager. Adding the .m2 directory as cache is not sufficient in this case, as the package manager will do a head request for all artifacts all the time unless it is found in the aforementioned cache. Signed-off-by: Thomas Neidhart <[email protected]>
1 parent 81698a9 commit a9ebb19

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,8 @@ runs:
331331
id: cache-dependencies
332332
uses: actions/cache@v4
333333
if: contains(inputs.run, 'cache-dependencies') && startsWith(runner.os, 'Linux')
334+
env:
335+
ORT_HOME_PATH: ${{ inputs.ort-home-path }}
334336
with:
335337
path: |
336338
~/.cabal/packages
@@ -354,6 +356,7 @@ runs:
354356
~/.sbt
355357
~/.stack-work
356358
~/go/pkg/mod
359+
$HOME/$ORT_HOME_PATH/cache
357360
key: ${{ runner.os }}-ort-deps-cache
358361
- name: Cache ORT scan results
359362
id: cache-scan-results

0 commit comments

Comments
 (0)