Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Implement actions/cache for maven packages #110

Open
TheBusyBiscuit opened this issue Jul 6, 2021 · 0 comments
Open

Implement actions/cache for maven packages #110

TheBusyBiscuit opened this issue Jul 6, 2021 · 0 comments

Comments

@TheBusyBiscuit
Copy link
Owner

TheBusyBiscuit commented Jul 6, 2021

To speed up build times, we should implement the actions/cache GitHub action for maven packages here.
An example would look like this:

    - name: Cache Maven packages
      uses: actions/cache@v2
      with:
        path: ~/.m2
        key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
        restore-keys: ${{ runner.os }}-m2

The key problem here is that we cannot use **/pom.xml as this is a JavaScript project first and foremost, we could use another file as a key here.

Workflow file:
https://github.com/TheBusyBiscuit/builds/blob/gh-pages/.github/workflows/build.yml

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant