From 2c0bf366264365b07eaca309a0cfda3fdc480aca Mon Sep 17 00:00:00 2001 From: Hossain Khan Date: Sat, 28 Jun 2025 17:16:05 -0400 Subject: [PATCH] [FIXED] Workflow tasks outdated issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > Configure project :app ⚠️ Production keystore not available, falling back to debug keystore for release build gradle/actions: Writing build results to /home/runner/work/_temp/.gradle-actions/build-results/__run-1751144979720.json [Incubating] Problems report is available at: file:///home/runner/work/trmnl-android/trmnl-android/build/reports/problems/problems-report.html Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/8.13/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. FAILURE: Build failed with an exception. * What went wrong: Task 'testStandardDebugUnitTest' not found in root project 'TRMNL' and its subprojects. * Try: > Run gradlew tasks to get a list of available tasks. --- .github/workflows/android-lint.yml | 4 +-- .github/workflows/android-release.yml | 2 +- .github/workflows/android.yml | 4 +-- .github/workflows/test-keystore-clean.yml | 44 ++++++----------------- 4 files changed, 15 insertions(+), 39 deletions(-) diff --git a/.github/workflows/android-lint.yml b/.github/workflows/android-lint.yml index 1e62cf5..80fc616 100644 --- a/.github/workflows/android-lint.yml +++ b/.github/workflows/android-lint.yml @@ -25,7 +25,7 @@ jobs: uses: gradle/actions/setup-gradle@v4 - name: Run Linter - run: ./gradlew lintStandardDebug + run: ./gradlew lintDebug - name: Build with Gradle - run: ./gradlew assembleStandard \ No newline at end of file + run: ./gradlew assembleDebug \ No newline at end of file diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index 9f2aa88..7d0e974 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -6,7 +6,7 @@ name: Android Release Build # # See: # - https://github.com/usetrmnl/trmnl-android/tree/main/keystore -# - https://github.com/usetrmnl/trmnl-android/blob/main/app/build.gradle.kts#L44-L55 +# - https://github.com/usetrmnl/trmnl-android/blob/main/app/build.gradle.kts (signing configuration) on: diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 4118780..8e70dca 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -25,7 +25,7 @@ jobs: uses: gradle/actions/setup-gradle@v4 - name: Run test and lint - run: ./gradlew lintKotlin testStandardDebugUnitTest --parallel --daemon + run: ./gradlew lintKotlin testDebugUnitTest --parallel --daemon - name: Build with Gradle - run: ./gradlew assembleStandardDebug --parallel --daemon + run: ./gradlew assembleDebug --parallel --daemon diff --git a/.github/workflows/test-keystore-clean.yml b/.github/workflows/test-keystore-clean.yml index caee7da..9933c03 100644 --- a/.github/workflows/test-keystore-clean.yml +++ b/.github/workflows/test-keystore-clean.yml @@ -83,47 +83,23 @@ jobs: # Set up Gradle chmod +x gradlew - # Test the standard release build - echo "Building standard release APK with production keystore..." - if ./gradlew assembleStandardRelease \ - -PKEYSTORE_PASSWORD="${{ secrets.KEYSTORE_PASSWORD }}" \ - -PKEY_ALIAS="${{ secrets.KEY_ALIAS }}" > keystore-test/gradle-build-standard.txt 2>&1; then - echo "✅ Android standard release build succeeded with production keystore" + # Test the release build with production keystore + echo "Building release APK with production keystore..." + if ./gradlew assembleRelease > keystore-test/gradle-build-release.txt 2>&1; then + echo "✅ Android release build succeeded with production keystore" # Verify the APK exists - if [ -f "app/build/outputs/apk/standard/release/app-standard-release.apk" ]; then - echo "✅ Standard release APK generated successfully" + if [ -f "app/build/outputs/apk/release/app-release.apk" ]; then + echo "✅ Release APK generated successfully" + echo "✅ Release build is now properly signed with production keystore" else - echo "❌ Standard release APK not found" + echo "❌ Release APK not found" exit 1 fi else - echo "❌ Android standard release build failed" + echo "❌ Android release build failed" echo "Build output:" - cat keystore-test/gradle-build-standard.txt - exit 1 - fi - - # Test the F-Droid release build - echo "" - echo "Building F-Droid release APK with production keystore..." - if ./gradlew assembleFdroidRelease \ - -PKEYSTORE_PASSWORD="${{ secrets.KEYSTORE_PASSWORD }}" \ - -PKEY_ALIAS="${{ secrets.KEY_ALIAS }}" > keystore-test/gradle-build-fdroid.txt 2>&1; then - echo "✅ Android F-Droid release build succeeded with production keystore" - - # Verify the APK exists - if [ -f "app/build/outputs/apk/fdroid/release/app-fdroid-release.apk" ]; then - echo "✅ F-Droid release APK generated successfully" - echo "✅ Both standard and F-Droid builds are now properly signed" - else - echo "❌ F-Droid release APK not found" - exit 1 - fi - else - echo "❌ Android F-Droid release build failed" - echo "Build output:" - cat keystore-test/gradle-build-fdroid.txt + cat keystore-test/gradle-build-release.txt exit 1 fi