Skip to content

Commit

Permalink
# Restore cache
Browse files Browse the repository at this point in the history
Signed-off-by: Theo Truong <theotr@amazon.com>
  • Loading branch information
nhtruong committed Feb 5, 2025
1 parent 2b4ac90 commit cb8dfff
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/test-unreleased.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,28 +42,28 @@ jobs:
working-directory: opensearch
run: echo key=`git log -1 --format='%H'` >> $GITHUB_OUTPUT

# - name: Restore cached build
# id: cache-restore
# uses: actions/cache/restore@v4
# with:
# path: opensearch/distribution/archives/linux-tar/build/distributions
# key: ${{ steps.get-key.outputs.key }}
- name: Restore cached build
id: cache-restore
uses: actions/cache/restore@v4
with:
path: opensearch/distribution/archives/linux-tar/build/distributions
key: ${{ steps.get-key.outputs.key }}

- name: Setup Java JDK
uses: actions/setup-java@v4
# if: steps.cache-restore.outputs.cache-hit != 'true'
if: steps.cache-restore.outputs.cache-hit != 'true'
with:
distribution: 'temurin'
java-version: ${{ matrix.entry.jdk_version }}

- name: Assemble OpenSearch
# if: steps.cache-restore.outputs.cache-hit != 'true'
if: steps.cache-restore.outputs.cache-hit != 'true'
working-directory: opensearch
run: ./gradlew :distribution:archives:linux-tar:assemble --stacktrace


- name: Save cached build
# if: steps.cache-restore.outputs.cache-hit != 'true'
if: steps.cache-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: opensearch/distribution/archives/linux-tar/build/distributions
Expand Down

0 comments on commit cb8dfff

Please sign in to comment.