From 3f328e075acf5aa6aae032d7984be32fd6fefce2 Mon Sep 17 00:00:00 2001 From: Ajin Abraham Date: Mon, 28 Oct 2024 00:01:43 -0700 Subject: [PATCH] java version --- .github/workflows/mobsf-test.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mobsf-test.yml b/.github/workflows/mobsf-test.yml index b80fcc994..ecdd4e2f8 100644 --- a/.github/workflows/mobsf-test.yml +++ b/.github/workflows/mobsf-test.yml @@ -69,12 +69,22 @@ jobs: - name: Windows debug if: startsWith(matrix.os, 'windows') run: | - JAVA_HOME="${JAVA_HOME_21_X64}" ~/.MobSF/tools/jadx/jadx-1.5.0/bin/jadx.bat + set JAVA_HOME=%JAVA_HOME_21_X64% + if "%JAVA_HOME%"=="" ( + echo JAVA_HOME_21_X64 is not set. Please ensure that the JAVA_HOME_21_X64 variable is defined. + exit /b 1 + ) + set PATH=%JAVA_HOME%\bin;%PATH% + echo JAVA_HOME is set to %JAVA_HOME% + echo PATH is updated with JAVA_HOME\bin + + java -version + ~/.MobSF/tools/jadx/jadx-1.5.0/bin/jadx.bat - name: Unit Tests on Ubuntu, macOS and Windows run: | git submodule update --init --recursive - JAVA_HOME="${JAVA_HOME_21_X64}" poetry run python manage.py test mobsf + poetry run python manage.py test mobsf - name: Python Package Test in Ubuntu and macOS if: startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'macOS')