Closed SebastianSchildt closed 4 months ago
This seems to fix caching for the build step.
The overall build is still slower than it was since caching of the unit test step was also broken in the original PR.
I suppose always having the target dir under target/
would make it easier to get this right, i.e. using --target-dir "target/cross-$target"
in order to work around the issue with building for different systems under cross
.
Fixed. I choose to fix the cache definition in workflow instead of changing dirs in script. (I was thinking if somebody during dev is using plain "cargo build/run" and also in between places with the build scripts, the structure inside the default target folder might seem confusing. Also... easier/faster to test for me just now)
There was a typo that prevents full caching of build artifacts for databroker build (CLI was ok already). Fixed now.
Example build with no cache (so probably also the build here, as changing cache contents invalidates cache)
Subsequent build satisfying cache requirements
(see here https://github.com/boschglobal/kuksa-databroker/actions?query=event%3Apull_request+branch%3Atest%2Fcaching for various test builds)
I also checked where time is mainly used now