Skip to content

Commit

Permalink
# enforcing JDK version
Browse files Browse the repository at this point in the history
Signed-off-by: Theo Truong <[email protected]>
  • Loading branch information
nhtruong committed Dec 10, 2024
1 parent b2582b7 commit 18ec063
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/test-unreleased.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
fail-fast: false
matrix:
entry:
- { ruby_version: '3.3', opensearch_ref: '1.x' }
- { ruby_version: '3.3', opensearch_ref: '2.x' }
- { ruby_version: '3.3', opensearch_ref: 'main' }
- { 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' }

steps:
- uses: ruby/setup-ruby@v1
Expand All @@ -46,12 +46,17 @@ jobs:
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'
with:
distribution: 'temurin'
java-version: ${{ matrix.entry.jdk_version }}

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


- name: Save cached build
Expand Down

0 comments on commit 18ec063

Please sign in to comment.