mirror of
https://github.com/anchore/syft.git
synced 2026-02-12 02:26:42 +01:00
fix: only cache java packages and not source content (#1750)
* fix: only cache java packages and not source content Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com> * fix: add gradle to matched files for ci checksum Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com> --------- Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
This commit is contained in:
parent
98a6c6efbe
commit
a42bac6fcc
2
.github/workflows/validations.yaml
vendored
2
.github/workflows/validations.yaml
vendored
@ -36,7 +36,7 @@ jobs:
|
||||
- name: Restore Java test-fixture cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: syft/pkg/cataloger/java/test-fixtures/java-builds
|
||||
path: syft/pkg/cataloger/java/test-fixtures/java-builds/packages
|
||||
key: ${{ runner.os }}-unit-java-cache-${{ hashFiles( 'syft/pkg/cataloger/java/test-fixtures/java-builds/cache.fingerprint' ) }}
|
||||
|
||||
- name: Restore RPM test-fixture cache
|
||||
|
||||
@ -74,5 +74,5 @@ $(PKGSDIR)/gcc-amd64-darwin-exec-debug:
|
||||
# we need a way to determine if CI should bust the test cache based on the source material
|
||||
.PHONY: cache.fingerprint
|
||||
cache.fingerprint:
|
||||
find example-* build-* Makefile -type f -exec sha256sum {} \; | sort | tee /dev/stderr | tee cache.fingerprint
|
||||
find example* build* gradle* Makefile -type f -exec sha256sum {} \; | sort | tee /dev/stderr | tee cache.fingerprint
|
||||
sha256sum cache.fingerprint
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user