Bump agp from 8.7.3 to 8.8.0 #304
Workflow file for this run
This file contains 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: Pull request | |
on: | |
pull_request: | |
branches: | |
- main | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
checks: write | |
statuses: write | |
id-token: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
detekt: | |
name: Detekt - PR | |
runs-on: macos-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: adopt | |
java-version: 17 | |
- name: Detekt - PR | |
run: ./gradlew detektAll | |
- name: Fix path in logs | |
uses: richardrigutins/[email protected] | |
if: ${{ !cancelled() }} | |
with: | |
files: ${{ github.workspace }}/**/build/reports/detekt/*.xml | |
search-text: ${{ github.workspace }}/ | |
replacement-text: '' | |
- name: Publish detekt results | |
if: ${{ !cancelled()}} | |
uses: gmazzo/[email protected] | |
with: | |
reports: ${{ github.workspace }}/**/build/reports/detekt/*.xml | |
checkName: Detekt | |
token: ${{ github.token }} | |
workflowSummary: true | |
warningsAsErrors: false | |
checksSummary: full | |
failOnError: true | |
ktlint: | |
name: Ktlint - PR | |
runs-on: macos-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: adopt | |
java-version: 17 | |
- name: Ktlint - PR | |
run: ./gradlew ktlintCheck | |
- name: Fix path in logs | |
uses: richardrigutins/[email protected] | |
if: ${{ !cancelled() }} | |
with: | |
files: ${{ github.workspace }}/**/build/reports/ktlint/**/*.xml | |
search-text: ${{ github.workspace }}/ | |
replacement-text: '' | |
- name: Publish ktlint results | |
if: ${{ !cancelled()}} | |
uses: gmazzo/[email protected] | |
with: | |
reports: ${{ github.workspace }}/**/build/reports/ktlint/**/*.xml | |
checkName: Ktlint | |
token: ${{ github.token }} | |
workflowSummary: true | |
warningsAsErrors: false | |
checksSummary: full | |
failOnError: true | |
build-lib-base: | |
name: Build base - PR | |
if: ${{ success() }} | |
needs: [ detekt, ktlint ] | |
runs-on: macos-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: adopt | |
java-version: 17 | |
- name: Build | |
continue-on-error: ${{ matrix.config.continueOnError }} | |
run: ./gradlew :ui-base:build | |
build-lib-ui: | |
strategy: | |
matrix: | |
config: [ | |
{ target: tiles, module: ui-tiles, task: build, continueOnError: false }, | |
{ target: tiles expanded, module: ui-tiles-extended, task: build, continueOnError: false }, | |
] | |
name: Build ${{ matrix.config.target }} - PR | |
if: ${{ success() }} | |
needs: [ detekt, build-lib-base ] | |
runs-on: macos-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: adopt | |
java-version: 17 | |
- name: Build | |
continue-on-error: ${{ matrix.config.continueOnError }} | |
run: ./gradlew :${{ matrix.config.module }}:${{ matrix.config.task }} | |
build-sample: | |
strategy: | |
matrix: | |
config: [ | |
{ target: android, module: androidApp , os: ubuntu-latest, tasks: assembleDebug, continueOnError: false }, | |
{ target: iOS, module: iosApp , os: macos-latest, tasks: compileKotlinIosArm64, continueOnError: false }, | |
{ target: js, module: jsApp , os: ubuntu-latest, tasks: jsBrowserDistribution, continueOnError: false }, | |
{ target: wasm, module: wasmApp , os: ubuntu-latest, tasks: wasmJsBrowserDistribution, continueOnError: false }, | |
{ target: desktop, module: desktopApp , os: ubuntu-latest, tasks: assemble, continueOnError: false } | |
] | |
if: ${{ success() }} | |
needs: [ build-lib-ui ] | |
runs-on: ${{ matrix.config.os }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: adopt | |
java-version: 17 | |
- name: Build sample ${{ matrix.config.target }} - PR | |
continue-on-error: ${{ matrix.config.continueOnError }} | |
run: ./gradlew :samples:${{ matrix.config.module }}:${{ matrix.config.tasks }} | |
# verify-screenshots: | |
# name: Validate screenshots - PR | |
# if: ${{ success() }} | |
# needs: [ build-sample ] | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Check out code | |
# uses: actions/checkout@v4 | |
# | |
# - name: Set up JDK | |
# uses: actions/setup-java@v4 | |
# with: | |
# distribution: adopt | |
# java-version: 17 | |
# | |
# - name: Validate screenshots - PR | |
# run: ./gradlew validateScreenshotTest | |
check-sign: | |
name: Check signature - PR | |
if: ${{ success() }} | |
needs: [ build-sample ] | |
runs-on: macos-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: adopt | |
java-version: 17 | |
- name: Check signature - PR | |
run: ./gradlew signReleasePublication -Psigning.secretKeyRingFile=../secrets.gpg -Psigning.keyId=${{ secrets.GPG_KEY_NAME }} -Psigning.password=${{ secrets.GPG_PASSPHRASE }} | |
fake-publish: | |
name: Fake publish - PR | |
if: ${{ success() }} | |
needs: [ build-sample ] | |
runs-on: macos-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: adopt | |
java-version: 17 | |
- name: Publish to MavenLocal | |
run: ./gradlew publishToMavenLocal -Psigning.secretKeyRingFile=../secrets.gpg -Psigning.keyId=${{ secrets.GPG_KEY_NAME }} -Psigning.password=${{ secrets.GPG_PASSPHRASE }} | |
publish-dry: | |
name: Dry run publish - PR | |
if: ${{ success() }} | |
needs: [ check-sign, build-sample ] | |
runs-on: macos-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: adopt | |
java-version: 17 | |
- name: Publish to MavenCentral (dry) | |
run: ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache --max-workers 1 -Psigning.secretKeyRingFile=../secrets.gpg -Psigning.keyId=${{ secrets.GPG_KEY_NAME }} -Psigning.password=${{ secrets.GPG_PASSPHRASE }} -PmavenCentralUsername=${{ secrets.OSSRH_USERNAME }} -PmavenCentralPassword=${{ secrets.OSSRH_PASSWORD }} --dry-run |