Cache Maven packages for faster builds

This commit is contained in:
4drian3d 2021-05-02 16:46:11 -05:00 committed by GitHub
parent 1e0c94c4e5
commit 69395de89d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,13 @@ jobs:
distribution: 'adopt'
architecture: x64
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build Flamecord
run: |
git config --global user.email "you@example.com"
@ -29,4 +36,4 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: Flamecord-JDK${{ matrix.java }}
path: Travertine-Proxy/bootstrap/target/Travertine.jar
path: Travertine-Proxy/bootstrap/target/Travertine.jar