Skip to content

Commit 6656533

Browse files
authored
Merge pull request #107 from touchlab/hbmartin-hm/mem-pool-fix-and-kotlin-upgrade
Hbmartin hm/mem pool fix and kotlin upgrade
2 parents a5a532b + d4ff5c7 commit 6656533

File tree

29 files changed

+406
-472
lines changed

29 files changed

+406
-472
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,43 +12,51 @@ jobs:
1212
build:
1313
strategy:
1414
matrix:
15-
os: [ macOS-latest, ubuntu-18.04 ]
15+
os: [ macOS-latest ]
16+
# os: [ macOS-latest, ubuntu-18.04 ] GitHub actions removed ubuntu-18.04
1617
# os: [ macOS-latest, windows-latest, ubuntu-18.04 ]
1718
runs-on: ${{matrix.os}}
1819
steps:
1920
- name: Checkout the repo
2021
uses: actions/checkout@v2
22+
2123
- name: Install msys2
2224
if: matrix.os == 'windows-latest'
2325
uses: msys2/setup-msys2@v2
2426
with:
2527
msystem: MINGW64
2628
update: true
2729
install: git mingw-w64-x86_64-toolchain libsqlite
30+
2831
- name: Validate Gradle Wrapper
2932
uses: gradle/wrapper-validation-action@v1
33+
3034
- name: Cache gradle
3135
uses: actions/cache@v2
3236
with:
3337
path: ~/.gradle/caches
3438
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
3539
restore-keys: |
3640
${{ runner.os }}-gradle-
41+
3742
- name: Cache konan
3843
uses: actions/cache@v2
3944
with:
4045
path: ~/.konan
4146
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
4247
restore-keys: |
4348
${{ runner.os }}-gradle-
49+
4450
- name: Update Environment Variables
51+
if: matrix.os == 'windows-latest'
4552
shell: bash
4653
run: |
4754
echo "c:\msys64\mingw64\bin" >> $GITHUB_PATH
55+
4856
- name: Build
4957
run: ./gradlew build --no-daemon --stacktrace
5058

51-
- name: Build New Memory Model
59+
- name: Build Old Memory Model
5260
run: ./gradlew build --no-daemon --stacktrace -Pkotlin.native.binary.memoryModel=experimental
5361
env:
5462
GRADLE_OPTS: -Dorg.gradle.configureondemand=true -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"

.idea/icon.svg

Lines changed: 23 additions & 0 deletions
Loading

build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ allprojects {
33
mavenLocal()
44
mavenCentral()
55
google()
6-
jcenter()
76
maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev")
87
}
98
}

gradle.properties

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ kotlin.code.style=official
22

33
GROUP=co.touchlab
44

5-
VERSION_NAME=1.2.3
6-
KOTLIN_VERSION=1.8.10
5+
VERSION_NAME=1.3.0
6+
KOTLIN_VERSION=1.9.20
77

88
kotlin.native.ignoreDisabledTargets=true
99

@@ -26,3 +26,4 @@ POM_DEVELOPER_URL=https://touchlab.co/
2626

2727
kotlin.mpp.enableCInteropCommonization=true
2828
kotlin.mpp.commonizerLogLevel=info
29+
kotlin.mpp.applyDefaultHierarchyTemplate=false

gradle/gradle-mvn-mpp-push.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ def getRepositoryPassword() {
2727
}
2828

2929
task emptySourcesJar(type: Jar) {
30-
classifier = 'sources'
30+
archiveClassifier = 'sources'
3131
}
3232
task emptyJavadocJar(type: Jar) {
33-
classifier = 'javadoc'
33+
archiveClassifier = 'javadoc'
3434
}
3535

3636
def getGpgKey() {
@@ -97,7 +97,6 @@ publishing {
9797
}
9898

9999
tasks.register('publishWindows') {
100-
dependsOn 'publishMingwX86PublicationToMavenRepository'
101100
dependsOn 'publishMingwX64PublicationToMavenRepository'
102101
}
103102

gradle/wrapper/gradle-wrapper.jar

6.19 KB
Binary file not shown.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Sat Oct 27 17:06:01 BST 2018
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip

0 commit comments

Comments
 (0)