Skip to content

Commit

Permalink
- use github action caching for maven deps in nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
derreisende77 committed Oct 17, 2023
1 parent 8237d94 commit 40e4525
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,10 @@ jobs:
paths: .github/workflows src/ res/ pom.xml .install4j/ .mvn/
- name: Set up JDK 21
if: steps.check-if-changed.outputs.changed == 'true'
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 21

- name: Cache local Maven repository
if: steps.check-if-changed.outputs.changed == 'true'
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
java-version: '21'
cache: 'maven'
- name: Build and test with Maven
if: steps.check-if-changed.outputs.changed == 'true'
run: ./mvnw -B package
Expand Down Expand Up @@ -74,9 +66,10 @@ jobs:
with:
ref: develop
- name: Set up JDK 21
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 21
cache: 'maven'
- uses: AdoptOpenJDK/install-jdk@v1
with:
version: '8'
Expand All @@ -89,13 +82,6 @@ jobs:
- name: Extract install4j
run: tar -zxvf install4j.tar.gz

- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Add install4j license
run: ./mvnw clean install4j:install-license -Pinstall4j
env:
Expand Down

0 comments on commit 40e4525

Please sign in to comment.