Skip to content

Commit

Permalink
chore: kotlin 2.0-RC1
Browse files Browse the repository at this point in the history
  • Loading branch information
romainbsl committed Apr 29, 2024
1 parent 7aaf7c7 commit 2c20a33
Show file tree
Hide file tree
Showing 5 changed files with 273 additions and 217 deletions.
45 changes: 43 additions & 2 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,55 @@ on:
jobs:
build-upload:
runs-on: macOS-latest
strategy:
matrix:
api-level: [33]
target: [google_apis]
arch: [x86_64]
env:
SONATYPE_USERNAME: ${{ secrets.sonatype_username }}
SONATYPE_PASSWORD: ${{ secrets.sonatype_password }}
steps:
- name: Setup
uses: kosi-libs/kodein-internal-github-actions/setup@main
- name: Check with Android
uses: kosi-libs/kodein-internal-github-actions/checkWithAndroid@main
# - name: Check with Android
# uses: kosi-libs/kodein-internal-github-actions/checkWithAndroid@main

- name: Gradle cache
uses: gradle/gradle-build-action@v2

- name: AVD cache
uses: actions/cache@v3
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.api-level }}

- name: Create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
arch: ${{ matrix.arch }}
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
script: echo "Generated AVD snapshot for caching."

- name: Run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
arch: ${{ matrix.arch }}
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: ./gradlew connectedAndroidTest

- name: Upload
run: ./gradlew publishAllPublicationsToOssrhStagingRepository -PgitRef=${{ github.ref }} -Psnapshot=true
shell: bash
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ package-lock.json
*.a
*.o
*.so

# Kotlin
.kotlin
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ plugins {

allprojects {
group = "org.kodein.type"
version = "2.8.2"
version = "2.9.0"
}
Loading

0 comments on commit 2c20a33

Please sign in to comment.