diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 529d908..9670a47 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -11,10 +11,31 @@ on: jobs: build: runs-on: ubuntu-latest + steps: - - name: Checkout sources - uses: actions/checkout@v4 - - name: Setup Gradle - uses: gradle/gradle-build-action@v3 + - uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + cache: gradle + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle - run: ./gradlew build + run: ./gradlew build -x lint --warning-mode all + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: Package + path: build/libs + + - name: Upload Lint Report + uses: actions/upload-artifact@v4 + with: + name: lint-report + path: app/build/reports/lint-results-debug.html \ No newline at end of file