Update gradle dependencies and improve build configuration #1
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: "CodeQL - Build" | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '25 15 * * 0' | |
| jobs: | |
| build: | |
| name: Build Database | |
| if: github.actor != 'dependabot[bot]' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| contents: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| cache: 'gradle' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v6 | |
| with: | |
| cache-read-only: false | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| languages: java-kotlin | |
| build-mode: manual | |
| - name: Build with Gradle | |
| run: ./gradlew clean assembleDebug -x :app:validateSigningBenchmark -x :app:validateSigningRelease | |
| - name: Create CodeQL Database | |
| uses: github/codeql-action/analyze@v4 | |
| with: | |
| category: "/language:java-kotlin" | |
| skip-queries: true | |
| upload: false | |
| - name: Upload CodeQL Database | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: codeql-database | |
| path: ${{ runner.temp }}/codeql_databases | |
| retention-days: 1 |