[FIXED] Workflow tasks outdated issue

> 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.
This commit is contained in:
Hossain Khan
2025-06-28 17:16:05 -04:00
parent bc9db7ecfb
commit 2c0bf36626
4 changed files with 15 additions and 39 deletions
+2 -2
View File
@@ -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
run: ./gradlew assembleDebug
+1 -1
View File
@@ -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:
+2 -2
View File
@@ -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
+10 -34
View File
@@ -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