duderstadt-lab / mars-fx

BSD 2-Clause "Simplified" License
3 stars 1 forks source link

CI: cache ~/.m2 correctly #72

Closed ctrueden closed 2 years ago

ctrueden commented 2 years ago

For the cache to work, we need to use hashFiles on the pom.xml contents.

Unfortunately, we have to use actions/cache rather than the cache: maven option of setup-java v2+, because we are stuck on setup-java v1 in order to install Zulu JDK+FX 8.

In my tests, this change halved the build time (2 min 3 sec before versus 48 sec after).

karlduderstadt commented 2 years ago

Thank you very much for making this PR!