Skip to content

Use API 34 for compileSDK #28

Use API 34 for compileSDK

Use API 34 for compileSDK #28

Workflow file for this run

name: KMMTemplate (Android 🤖) build on Android
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Build the app in debug mode
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run "assembleDebug" Gradle task
run: ./gradlew assembleDebug
- name: Stop gradle daemon (for safe caching)
run: ./gradlew --stop
- name: Send notification on Slack
uses: rtCamp/[email protected]
if: ${{ success() }}
env:
SLACK_CHANNEL: ${{ vars.SLACK_GITHUB_ACTIONS_CHANNEL_NAME }}
SLACK_COLOR: ${{ job.status }}
SLACK_ICON: ${{ vars.SLACK_GITHUB_ACTIONS_ICON_URL }}
SLACK_MESSAGE: ':white_check_mark: Build for Android :android: successful! :rocket:'
SLACK_TITLE: KMMTemplate build status
SLACK_USERNAME: Github Actions CI
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
- name: Send notification on Slack
uses: rtCamp/[email protected]
if: ${{ failure() }}
env:
SLACK_CHANNEL: ${{ vars.SLACK_GITHUB_ACTIONS_CHANNEL_NAME }}
SLACK_COLOR: ${{ job.status }}
SLACK_ICON: ${{ vars.SLACK_GITHUB_ACTIONS_ICON_URL }}
SLACK_MESSAGE: ':x: Build for Android :android: failed! :pensive:'
SLACK_TITLE: KMMTemplate build status
SLACK_USERNAME: Github Actions CI
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}