diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 9943bcd8..5f8519f8 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -30,11 +30,14 @@ jobs: java-version: ${{ env.java_version }} cache: gradle - - name: Install Android SDK - if: steps.cache-sdk.outputs.cache-hit != 'true' + - name: Install utils for Android SDK run: | apt-get update apt-get install -y openjdk-11-jdk wget + + - name: Install Android SDK + if: steps.cache-sdk.outputs.cache-hit != 'true' + run: | wget https://dl.google.com/android/repository/commandlinetools-linux-7583922_latest.zip -O commandlinetools.zip unzip commandlinetools.zip mkdir -p ${{ env.my_local_cache_dir }}Android/Sdk/cmdline-tools/latest @@ -65,7 +68,7 @@ jobs: channel: ${{ env.flutter_channel }} flutter-version: ${{ env.flutter_version }} cache: true - cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:2" # optional, change this to force refresh cache + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" # optional, change this to force refresh cache cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" # optional, change this to specify the cache path pub-cache-key: "flutter-pub:os:-:channel:-:version:-:arch:-:hash:" # optional, change this to force refresh cache of dart pub get dependencies pub-cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" # optional, change this to specify the cache path @@ -83,9 +86,6 @@ jobs: echo "PATH is $PATH" echo "ANDROID_SDK_ROOT is $ANDROID_SDK_ROOT" echo "ANDROID_HOME is $ANDROID_HOME" - ls -la /opt/hostedtoolcache - ls -la /opt/hostedtoolcache/Android/Sdk - ls -la /opt/hostedtoolcache/Android/Sdk/cmdline-tools/latest/bin - name: Fix dir permissions run: | @@ -107,6 +107,7 @@ jobs: - name: Rename and move apk run: | + timedatectl set-timezone Europe/Moscow TIMESTAMP=$(date +'%Y-%m-%d-%H-%M') APK_NAME="eatvio_app_${TIMESTAMP}.apk" mv build/app/outputs/flutter-apk/app-release.apk $APK_NAME