From 7ea367d54c3876360c5601752698fd7bd9958826 Mon Sep 17 00:00:00 2001 From: Sayali Mohadikar <76010603+sayaliM0412@users.noreply.github.com> Date: Fri, 28 Jul 2023 11:41:08 -0700 Subject: [PATCH] DAT-15470 (#4544) * 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/cache@v3.3.1 * 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 --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 33f8a9a07ba..6469f73477a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: @@ -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/cache@v3.3.1 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