Skip to content

Commit

Permalink
הגדרת java עדכנית
Browse files Browse the repository at this point in the history
  • Loading branch information
NHLOCAL committed Nov 24, 2024
1 parent 6b2925d commit d77eaf7
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/build-apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
java-version: '17'

- name: Set JAVA_HOME
run: echo "JAVA_HOME=$JAVA_HOME_17_X64" >> $GITHUB_ENV # Make JAVA_HOME point to Java 17

- name: Install Flutter SDK
uses: subosito/flutter-action@v2
Expand Down Expand Up @@ -54,15 +57,6 @@ jobs:
yes | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --install "ndk;27.2.12479018" --channel=3 # Or another suitable NDK version/channel
yes | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --install "platforms;android-35"
# Alternatively, install NDK manually if needed (uncomment if the above fails)
# - name: Download and install NDK manually
# run: |
# NDK_VERSION="21.4.7075529" # Replace with the correct, currently supported version
# wget -q https://dl.google.com/android/repository/android-ndk-r$NDK_VERSION-linux.zip
# unzip android-ndk-r$NDK_VERSION-linux.zip -d $ANDROID_SDK_ROOT/ndk
# echo "NDK_HOME=$ANDROID_SDK_ROOT/ndk/android-ndk-r$NDK_VERSION" >> $GITHUB_ENV
# echo "PATH=$NDK_HOME:$PATH" >> $GITHUB_ENV

- name: Create and activate virtual environment
run: |
python3 -m venv .venv
Expand Down

0 comments on commit d77eaf7

Please sign in to comment.