Skip to content

Commit

Permalink
#
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 4, 2025
1 parent 8427ae3 commit 18468a1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/test-unreleased.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
entry:
- { ruby_version: '3.3', opensearch_ref: '1.x', jdk_version: '11' }
- { ruby_version: '3.3', opensearch_ref: '2.x', jdk_version: '17' }
- { ruby_version: '3.3', opensearch_ref: 'main', jdk_version: '17' }
- { ruby_version: '3.3', opensearch_ref: 'main', jdk_version: '23' }

steps:
- uses: ruby/setup-ruby@v1
Expand All @@ -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 18468a1

Please sign in to comment.