Fix linter errors #4
Workflow file for this run
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | name: AutoBuild | |
| # | |
| # Constructed with help from: | |
| # - https://blog.logrocket.com/android-ci-cd-using-github-actions/ | |
| # - https://www.droidcon.com/2022/01/05/getting-started-ci-cd-for-android-project-part-3-github-actions/ | |
| # - https://stackoverflow.com/questions/61335109/ | |
| # - https://github.com/actions/setup-java | |
| # - https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle | |
| # | |
| on: | |
| release: | |
| types: [created] | |
| pull_request: | |
| types: [opened, edited, reopened, synchronize] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: set up JDK 21 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Build with Gradle | |
| run: | | |
| echo "Building Debug APK." | |
| chmod +x gradlew | |
| ./gradlew build --no-daemon | |
| - name: Cache Gradle packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: Package | |
| path: app/build/outputs/apk/release/app-release-unsigned.apk |