Skip to content

Commit

Permalink
use graalvm action cache?
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellblazer committed Aug 28, 2023
1 parent 4226f15 commit 2bceef2
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,13 @@ jobs:
uses: stCarolas/setup-maven@v4.5
with:
maven-version: 3.9.4
- uses: actions/checkout@v3
- name: Cache local Maven repository
uses: actions/cache@v3.0.11
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- uses: actions/checkout@v3
- uses: graalvm/setup-graalvm@v1
with:
java-version: '20.0.1'
distribution: graalvm
components: 'native-image'
cache: 'maven'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build with Maven
run: mvn -batch-mode --update-snapshots clean install --file pom.xml

0 comments on commit 2bceef2

Please sign in to comment.