Skip to content

Commit

Permalink
fix konan caching, java 17 #639
Browse files Browse the repository at this point in the history
  • Loading branch information
thoutbeckers committed Jan 31, 2023
1 parent 707e97b commit 95b8ea5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/emulator.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Android Emulator tests
on: [pull_request, push]
on: pull_request
env:
GRADLE_OPTS: "-Dorg.gradle.jvmargs=\"-Xmx8G -XX:MaxMetaspaceSize=512m -Dorg.gradle.daemon=false -Dkotlin.incremental=false\" -Dorg.gradle.daemon=false -Dkotlin.incremental=false -Dkotlin.daemon.jvm.options=-Xmx8G,-XX:MaxMetaspaceSize=512m,-Dorg.gradle.daemon=false,-Dkotlin.incremental=false"
JAVA_OPTS: "-Xmx8G -XX:MaxMetaspaceSize=512m -Dorg.gradle.daemon=false -Dkotlin.incremental=false"
Expand Down
23 changes: 17 additions & 6 deletions .github/workflows/ios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,25 @@ jobs:
runs-on: macos-12
outputs:
projects: ${{ steps.envFile.outputs.projects }}
kotlinVersion: ${{ steps.kalugaKotlinVersionProperty.outputs.kaluga.kotlinVersion }}
steps:
- name: checkout
uses: actions/checkout@v3

# remove VM settings as defined for using the IDE
- run: sed -i '' -e '/org.gradle.jvmargs/d' gradle.properties; cat gradle.properties

- name : set up JDK 11
- name : set up JDK 17
uses : actions/setup-java@v3
with :
distribution : 'temurin'
java-version : 11
java-version : 17

- uses: cardinalby/export-env-action@v2
id: kalugaKotlinVersionProperty
with:
envFile: gradle.properties
export: false

- name: Gradle cache
uses: gradle/gradle-build-action@v2
Expand All @@ -35,8 +42,10 @@ jobs:
uses: actions/cache@v3
id: konan-cache
with:
path: ~/.konan/*
key: konan
path: |
~/.konan/cache/*
~/.konan/kotlin-native-prebuilt-macos-x86_64-${{ steps.kalugaKotlinVersionProperty.outputs.kaluga.kotlinVersion }}/*
key: konan-${{ steps.kalugaKotlinVersionProperty.outputs.kaluga.kotlinVersion }}

- run: ./gradlew generateNonDependentProjectsFile

Expand Down Expand Up @@ -94,8 +103,10 @@ jobs:
uses: actions/cache@v3
id: konan-cache
with:
path: ~/.konan/*
key: konan
path: |
~/.konan/cache/*
~/.konan/kotlin-native-prebuilt-macos-x86_64-${{ needs.build.outputs.kotlinVersion }}/*
key: konan-${{ needs.build.outputs.kotlinVersion }}

- name: run tests
run: ./gradlew :${{ matrix.module }}:iosX64Test

0 comments on commit 95b8ea5

Please sign in to comment.