Split mac builds into different scripts

This commit is contained in:
Ugljesa Jovanovic 2020-06-11 17:46:26 +02:00 committed by Ugljesa Jovanovic
parent c3432bc299
commit 376283b736
No known key found for this signature in database
GPG Key ID: 178E6DFCECCB0E0F
9 changed files with 110 additions and 17 deletions

16
macBuild-mac-ios.sh Normal file
View File

@ -0,0 +1,16 @@
set -e
#!/bin/sh
#this will hopefully download all konan dependancies that we use in the build scripts
./gradlew multiplatform-crypto-api:build
#now let's build linux deps
cd sodiumWrapper
./makeMacosX86-64.sh
./makeIos.sh
#now we can do the delegated build of ios and macos libraries
cd ..
./gradlew multiplatform-crypto-delegated:iosArm32MainKlibrary multiplatform-crypto-delegated:iosArm32TestKlibrary \
multiplatform-crypto-delegated:iosArm64MainKlibrary multiplatform-crypto-delegated:iosArm64TestKlibrary \
multiplatform-crypto-delegated:iosX64MainKlibrary multiplatform-crypto-delegated:iosX64TestKlibrary \
multiplatform-crypto-delegated:macosX64MainKlibrary multiplatform-crypto-delegated:macosX64TestKlibrary
set +e

5
macBuild-pure.sh Normal file
View File

@ -0,0 +1,5 @@
set -e
#!/bin/sh
./gradlew multiplatform-crypto-api:build
./gradlew multiplatform-crypto:build
set +e

13
macBuild-tvos.sh Normal file
View File

@ -0,0 +1,13 @@
set -e
#!/bin/sh
#this will hopefully download all konan dependancies that we use in the build scripts
./gradlew multiplatform-crypto-api:build
#now let's build linux deps
cd sodiumWrapper
./makeMacosX86-64.sh
./makeIos.sh
#now we can do the delegated build of ios and macos libraries
cd ..
./gradlew multiplatform-crypto-delegated:tvosArm64MainKlibrary multiplatform-crypto-delegated:tvosArm64TestKlibrary \
multiplatform-crypto-delegated:tvosX64MainKlibrary multiplatform-crypto-delegated:tvosX64TestKlibrary
set +e

14
macBuild-watchos.sh Normal file
View File

@ -0,0 +1,14 @@
set -e
#!/bin/sh
#this will hopefully download all konan dependancies that we use in the build scripts
./gradlew multiplatform-crypto-api:build
#now let's build linux deps
cd sodiumWrapper
./makeMacosX86-64.sh
./makeIos.sh
#now we can do the delegated build of ios and macos libraries
cd ..
./gradlew multiplatform-crypto-delegated:watchosArm32MainKlibrary multiplatform-crypto-delegated:watchosArm32TestKlibrary \
multiplatform-crypto-delegated:watchosArm64MainKlibrary multiplatform-crypto-delegated:watchosArm64TestKlibrary \
multiplatform-crypto-delegated:watchosX86MainKlibrary multiplatform-crypto-delegated:watchosX86TestKlibrary
set +e

View File

@ -0,0 +1,15 @@
set -e
#!/bin/sh
#this will hopefully download all konan dependancies that we use in the build scripts
./gradlew multiplatform-crypto-api:build
#now let's build linux deps
cd sodiumWrapper
./makeMacosX86-64.sh
./makeIos.sh
#now we can do the delegated build of ios and macos libraries
cd ..
./gradlew multiplatform-crypto-delegated:publishIosArm32PublicationToMavenRepository \
multiplatform-crypto-delegated:publishIosArm64PublicationToMavenRepository \
multiplatform-crypto-delegated:publishIosX64PublicationToMavenRepository \
multiplatform-crypto-delegated:publishMacosX64PublicationToMavenRepository
set +e

View File

@ -0,0 +1,20 @@
set -e
#!/bin/sh
#this will hopefully download all konan dependancies that we use in the build scripts
./gradlew multiplatform-crypto-api:build
#now let's build linux deps
cd sodiumWrapper
./makeMacosX86-64.sh
./makeIos.sh
#now we can do the delegated build of ios and macos libraries
cd ..
./gradlew multiplatform-crypto:publishIosArm32PublicationToMavenRepository \
multiplatform-crypto:publishIosArm64PublicationToMavenRepository \
multiplatform-crypto:publishIosX64PublicationToMavenRepository \
multiplatform-crypto:publishMacosX64PublicationToMavenRepository \
multiplatform-crypto:publishTvosArm64PublicationToMavenRepository \
multiplatform-crypto:publishTvosX64PublicationToMavenRepository \
multiplatform-crypto:publishWatchosArm32PublicationToMavenRepository \
multiplatform-crypto:publishWatchosArm64PublicationToMavenRepository \
multiplatform-crypto:publishWatchosX86PublicationToMavenRepository
set +e

View File

@ -0,0 +1,13 @@
set -e
#!/bin/sh
#this will hopefully download all konan dependancies that we use in the build scripts
./gradlew multiplatform-crypto-api:build
#now let's build linux deps
cd sodiumWrapper
./makeMacosX86-64.sh
./makeIos.sh
#now we can do the delegated build of ios and macos libraries
cd ..
./gradlew multiplatform-crypto-delegated:publishTvosArm64PublicationToMavenRepository \
multiplatform-crypto-delegated:publishTvosX64PublicationToMavenRepository
set +e

View File

@ -0,0 +1,14 @@
set -e
#!/bin/sh
#this will hopefully download all konan dependancies that we use in the build scripts
./gradlew multiplatform-crypto-api:build
#now let's build linux deps
cd sodiumWrapper
./makeMacosX86-64.sh
./makeIos.sh
#now we can do the delegated build of ios and macos libraries
cd ..
./gradlew multiplatform-crypto-delegated:publishWatchosArm32PublicationToMavenRepository \
multiplatform-crypto-delegated:publishWatchosArm64PublicationToMavenRepository \
multiplatform-crypto-delegated:publishWatchosX86PublicationToMavenRepository
set +e

View File

@ -1,17 +0,0 @@
set -e
#!/bin/sh
#this will hopefully download all konan dependancies that we use in the build scripts
./gradlew multiplatform-crypto-api:build
#now let's build linux deps
cd sodiumWrapper
./makeMacosX86-64.sh
./makeIos.sh
./makeTvos.sh
./makeWatchos.sh
#now we can do the delegated build
cd ..
./gradlew multiplatform-crypto-delegated:build
#and finally pure build
./gradlew multiplatform-crypto:build
./gradlew build publishIos64ArmPublicationToSnapshotRepository publishIosPublicationToSnapshotRepository publishMacosX64PublicationToSnapshotRepository publishIos32ArmPublicationToSnapshotRepository
set +e