Skip to content

Commit

Permalink
Changed caching of m2 - (Task #78)
Browse files Browse the repository at this point in the history
- m2 is now cached with setup java

---
Task #78: Update IDE
  • Loading branch information
PhilMFischer committed Apr 16, 2024
1 parent b36ea4e commit 69f924f
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:
with:
java-version: 17
distribution: "temurin"
cache: 'maven'

- name: Setup - Maven 3.9.6
uses: virtualsatellite/ci-actions/ci-maven-setup@v7-beta2
Expand All @@ -99,17 +100,19 @@ jobs:
# --------------------------------------------
# Setup caching for m2 repository
# --------------------------------------------
- name: Setup - Cache local m2 repository
uses: actions/cache@v2
with:
path: ~/.m2/repository/
key: ${{ runner.os }}-local-m2-deploy-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-local-m2-deploy-
${{ runner.os }}-local-m2-
# - name: Setup - Cache local m2 repository
# uses: actions/cache@v2
# with:
# path: ~/.m2/repository/
# key: ${{ runner.os }}-local-m2-deploy-${{ hashFiles('**/pom.xml') }}
# restore-keys: |
# ${{ runner.os }}-local-m2-deploy-
# ${{ runner.os }}-local-m2-

- name: Setup - Clean local m2 repository
run: rm -rf ~/.m2/repository/de/dlr/sc/virsat
run: |
ls -d ~/.m2/repository/*/*/*
rm -rf ~/.m2/repository/de/dlr/sc/virsat
# --------------------------------------------
# Setup caching for p2 repository
Expand Down

0 comments on commit 69f924f

Please sign in to comment.