Skip to content

Commit 4f642e5

Browse files
committed
ci: surface Kotlin compile errors in the release log
1 parent 6e84c53 commit 4f642e5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎.github/workflows/android-release.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ jobs:
108108
KEY_PASSWORD: ${{ secrets.RELEASE_KEY_PASSWORD }}
109109
run: |
110110
set -o pipefail
111+
bash ./gradlew compileReleaseKotlin --no-daemon --stacktrace --console=plain -PversionName="${{ steps.release.outputs.version_name }}" -PversionCode="${{ steps.release.outputs.version_code }}" -PCOMPOSIO_WORKER_URL="$COMPOSIO_WORKER_URL" 2>&1 | tee "$RUNNER_TEMP/gradle-build.log"
112+
if grep -q "e: file:" "$RUNNER_TEMP/gradle-build.log"; then
113+
echo "KOTLIN ERRORS:"
114+
grep -A3 "e: file:" "$RUNNER_TEMP/gradle-build.log" | head -60
115+
exit 1
116+
fi
111117
bash ./gradlew assembleRelease --no-daemon --stacktrace --console=plain -PversionName="${{ steps.release.outputs.version_name }}" -PversionCode="${{ steps.release.outputs.version_code }}" -PCOMPOSIO_WORKER_URL="$COMPOSIO_WORKER_URL" 2>&1 | tee "$RUNNER_TEMP/gradle-build.log"
112118
113119
- name: Upload Gradle failure log

0 commit comments

Comments
 (0)