Skip to content

Commit cc5f5df

Browse files
chore: release 0.4.1
1 parent 0ea15c0 commit cc5f5df

File tree

4 files changed

+31
-16
lines changed

4 files changed

+31
-16
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
gradle/libs.versions.toml
5858
gradle/wrapper/gradle-wrapper.properties
5959
- name: Set up cross compilation
60-
run: sudo apt-get install -qy {binutils,gcc}-aarch64-linux-gnu
60+
run: sudo apt-get install -qy {binutils,gcc}-aarch64-linux-gnu gcc-mingw-w64-x86-64-posix
6161
if: matrix.platform == 'Linux' || matrix.platform == 'common'
6262
- name: Get the cache versions
6363
id: versions

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# The version of the project.
2-
project.version=0.4.0
2+
project.version=0.4.1
33

44
# Specifies the JVM arguments used for the daemon process.
55
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8

kbigint-serialization/build.gradle.kts

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
import org.gradle.internal.os.OperatingSystem
12
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
23

4+
val os: OperatingSystem = OperatingSystem.current()
5+
36
plugins {
47
`maven-publish`
58
signing
@@ -44,15 +47,21 @@ kotlin {
4447
compilerOptions.target.set("es2015")
4548
}
4649

47-
linuxX64 {}
48-
linuxArm64 {}
50+
if (os.isLinux) {
51+
linuxX64 {}
52+
linuxArm64 {}
53+
}
4954

50-
mingwX64 {}
55+
if (!os.isMacOsX) {
56+
mingwX64 {}
57+
}
5158

52-
macosX64 {}
53-
macosArm64 {}
54-
iosArm64 {}
55-
iosSimulatorArm64 {}
59+
if (!os.isWindows) {
60+
macosX64 {}
61+
macosArm64 {}
62+
iosArm64 {}
63+
iosSimulatorArm64 {}
64+
}
5665

5766
applyDefaultHierarchyTemplate()
5867

kbigint/build.gradle.kts

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,21 @@ kotlin {
6060
compilerOptions.target.set("es2015")
6161
}
6262

63-
linuxX64 { libtommath() }
64-
linuxArm64 { libtommath() }
63+
if (os.isLinux) {
64+
linuxX64 { libtommath() }
65+
linuxArm64 { libtommath() }
66+
}
6567

66-
mingwX64 { libtommath() }
68+
if (!os.isMacOsX) {
69+
mingwX64 { libtommath() }
70+
}
6771

68-
macosArm64 { libtommath() }
69-
macosX64 { libtommath() }
70-
iosArm64 { libtommath() }
71-
iosSimulatorArm64 { libtommath() }
72+
if (!os.isWindows) {
73+
macosArm64 { libtommath() }
74+
macosX64 { libtommath() }
75+
iosArm64 { libtommath() }
76+
iosSimulatorArm64 { libtommath() }
77+
}
7278

7379
applyDefaultHierarchyTemplate()
7480

0 commit comments

Comments
 (0)