Skip to content

Commit

Permalink
cache
Browse files Browse the repository at this point in the history
  • Loading branch information
mwangggg committed Oct 6, 2023
1 parent ec56562 commit 8b45da0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,17 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- id: cache_restore
uses: actions/cache/restore@v3
with:
path: pom
key: ${{ runner.os }}-build-${{ hashFiles('**/pom.xml') }}
- run: mvn -B -U clean install
- id: cache_save
uses: actions/cache/save@v3
with:
path: pom
key: ${{ steps.cache_restore.outputs.cache-primary-key }}

build-cryostat:
needs: [build-core]
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/cryostat-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- id: cache_restore
uses: actions/cache/restore@v3
with:
path: pom
key: ${{ runner.os }}-build-${{ hashFiles('**/pom.xml') }}
- name: maven-settings
uses: s4u/maven-settings-action@v2
with:
Expand Down

0 comments on commit 8b45da0

Please sign in to comment.