mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-06 08:28:53 +01:00
Cache Java Maven files differently.
This commit is contained in:
parent
70a2c20e51
commit
4da61f6849
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -24,12 +24,13 @@ jobs:
|
||||
path: ~/.sonar/cache
|
||||
key: ${{ runner.os }}-sonar
|
||||
restore-keys: ${{ runner.os }}-sonar
|
||||
- name: Cache Maven packages
|
||||
- name: Cache local Maven repository
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.m2
|
||||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: ${{ runner.os }}-m2
|
||||
path: ~/.m2/repository
|
||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-maven-
|
||||
- name: Build
|
||||
run: mvn --batch-mode clean org.jacoco:jacoco-maven-plugin:prepare-agent install
|
||||
- run: mkdir staging && cp target/*.jar staging
|
||||
|
Loading…
Reference in New Issue
Block a user