Skip to content

Commit

Permalink
DAT-15470 (liquibase#4544)
Browse files Browse the repository at this point in the history
* do not cache the keys for the next run

* restore-cache action doesn't have a post step to save the cache

* restore-cache action doesn't have a post step to save the cache

* adding !./**/target/keys to previous cache

* adding !./**/target/keys/*

* use actions/[email protected]

* using restore action

* using restore action

* using actions/cache with !./**/target/keys/

* forgot to add ./**/target/*

* trigger build

* trigger build

---------

Co-authored-by: Sayali M <sayali@Sayalis-MacBook-Pro>
  • Loading branch information
sayaliM0412 and Sayali M authored Jul 28, 2023
1 parent 24324e2 commit 7ea367d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ jobs:
with:
key: built-code-${{ github.run_number }}-${{ github.run_attempt }}
path: ./**/target

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
Expand Down Expand Up @@ -324,11 +325,14 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha || github.event.after}}
# this includes all the tar files included in the previous runs. So in the next step we deploy what was previously build
# do not cache the keys for the next run
- name: Built Code Cache
uses: actions/[email protected]
with:
key: built-code-${{ github.run_number }}-${{ github.run_attempt }}
path: ./**/target
path: |
./**/target/*
!./**/target/keys/
##Cache based on install4j file, since changes to JVM is seen in there. If install4j version changes without changing the file, change the prefix letter before hashFiles to force a new cache
- name: Install4j Cache
Expand Down

0 comments on commit 7ea367d

Please sign in to comment.