From 50a2e4f8d9b74441a0e388d7fc2cbf1e31425916 Mon Sep 17 00:00:00 2001 From: nmammeri Date: Sat, 8 Jun 2024 21:49:58 +0200 Subject: [PATCH] ci: add sdkman steps to github workflow --- .github/workflows/release_pyton_pytest.yml | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/release_pyton_pytest.yml b/.github/workflows/release_pyton_pytest.yml index 3e0252a..e59ea97 100644 --- a/.github/workflows/release_pyton_pytest.yml +++ b/.github/workflows/release_pyton_pytest.yml @@ -41,6 +41,16 @@ jobs: - uses: actions/setup-python@v5 with: python-version: '3.10' + - uses: sdkman/sdkman-action@v1 + id: sdkman + with: + candidate: java + version: 24.0.1.r22-nik + - uses: sdkman/sdkman-action@v1 + id: sdkman-gradle + with: + candidate: gradle + version: '8.8' - name: Build wheels uses: PyO3/maturin-action@v1 with: @@ -93,6 +103,22 @@ jobs: with: python-version: '3.10' architecture: ${{ matrix.platform.target }} + - uses: sdkman/sdkman-action@v1 + id: sdkman + with: + candidate: java + version: 24.0.1.r22-nik + - uses: actions/setup-java@v3 + id: setup-java + with: + distribution: 'jdkfile' + java-version: '22' + jdkFile: ${{ steps.sdkman.outputs.file }} + - uses: sdkman/sdkman-action@v1 + id: sdkman-gradle + with: + candidate: gradle + version: '8.8' - name: Build wheels uses: PyO3/maturin-action@v1 with: @@ -128,6 +154,16 @@ jobs: - uses: actions/setup-python@v5 with: python-version: '3.10' + - uses: sdkman/sdkman-action@v1 + id: sdkman + with: + candidate: java + version: 24.0.1.r22-nik + - uses: sdkman/sdkman-action@v1 + id: sdkman-gradle + with: + candidate: gradle + version: '8.8' - name: Build wheels uses: PyO3/maturin-action@v1 with: