File tree Expand file tree Collapse file tree 4 files changed +31
-16
lines changed
Expand file tree Collapse file tree 4 files changed +31
-16
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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.
55org.gradle.jvmargs =-Xmx2048m -Dfile.encoding=UTF-8
Original file line number Diff line number Diff line change 1+ import org.gradle.internal.os.OperatingSystem
12import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
23
4+ val os: OperatingSystem = OperatingSystem .current()
5+
36plugins {
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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments