Skip to content

Kotlin 2.0.21.

Kotlin 2.0.21. #344

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
paths-ignore:
- '**/*.md'
push:
branches:
- main
paths-ignore:
- '**/*.md'
env:
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xms4g -Xmx4g -XX:+UseParallelGC -XX:+HeapDumpOnOutOfMemoryError"
TERM: dumb
jobs:
assemble:
name: Assemble
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '23'
- uses: gradle/actions/setup-gradle@v4
- name: Assemble
run: ./gradlew assemble
checks:
name: Checks (unit tests, static analysis and binary compatibility API check)
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '23'
- uses: gradle/actions/setup-gradle@v4
- name: Check
run: ./gradlew check && ./gradlew -p build-logic detekt
deploy-snapshot:
name: Deploy snapshot
needs: [assemble, checks]
if: github.ref == 'refs/heads/main'
runs-on: macos-14
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '23'
- uses: gradle/actions/setup-gradle@v4
- name: Publish snapshot
run: ./gradlew publishToMavenCentral