Use make directly when publishing, also clean before building

This commit is contained in:
Ugljesa Jovanovic 2020-10-23 11:27:26 +02:00
parent 6f28cb93f7
commit abcb25e333
No known key found for this signature in database
GPG Key ID: 178E6DFCECCB0E0F
2 changed files with 6 additions and 6 deletions

View File

@ -1,15 +1,15 @@
set -e set -e
#!/bin/sh #!/bin/sh
#this will hopefully download all konan dependancies that we use in the build scripts #this will hopefully download all konan dependancies that we use in the build scripts
./gradlew clean
./gradlew multiplatform-crypto-api:build ./gradlew multiplatform-crypto-api:build
cd sodiumWrapper cd sodiumWrapper
echo "Starting mingw libsodium build" echo "Starting mingw libsodium build"
./configureMingw64.sh ./configureMingw64.sh
echo "Configure done" echo "Configure done"
$GNU_MAKE -j4 -C libsodium clean make -j4 -C libsodium clean
$GNU_MAKE -j4 -C libsodium make -j4 -C libsodium
$GNU_MAKE -j4 -C libsodium install make -j4 -C libsodium install
echo "completed libsodium build" echo "completed libsodium build"
#now we can do the delegated build #now we can do the delegated build
cd .. cd ..

View File

@ -1,8 +1,8 @@
set -e set -e
#!/bin/sh #!/bin/sh
#this will hopefully download all konan dependancies that we use in the build scripts #this will hopefully download all konan dependancies that we use in the build scripts
./gradlew clean
./gradlew multiplatform-crypto-api:build ./gradlew multiplatform-crypto-api:build
./gradlew multiplatform-crypto:build ./gradlew multiplatform-crypto:build
./gradlew multiplatform-crypto:publishMingwX64PublicationToSnapshotRepository ./gradlew multiplatform-crypto:publishMingwX64PublicationToSnapshotRepository
set +e set +e