From 0c95c20f98cc7ab624049b99e962868bc8111129 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B0=D1=82=D0=BE=D0=BB=D0=B8=D0=B9=20=D0=9F?= =?UTF-8?q?=D0=BE=D0=BB=D0=BE=D0=B7?= Date: Mon, 18 Nov 2024 22:38:04 +0000 Subject: [PATCH] Update .gitea/workflows/test.yml --- .gitea/workflows/test.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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