libsodium_wasm_experimental/linuxBuildAndPublish.sh
Ugljesa Jovanovic 0000bc4b8e
Disable macos and linux builds while we are setting up windows builds
Add windows cache directories

fix yml

Fix YAML

Get java first on windows build

Try to replace mingw with msys in script

Try windows build without the toolchain, since we are bringing our own

taskkill was failing

Different libtool package name

Add autoconf to msys2

Install mingw-w64-x86_64-toolchain but with each package instead of a group which interrupts installation

Msys2 cant find make, try using alias

Make everything executable, add some debugging logs to windowsBuild

Skip building, debug make

Find all make files

Another attempt

Attempt different alias

Try with symbolic link

Attempt mingw64

Forgot to change folder

Attempt N

Set -e+e

Try with cygwin

mingw again

Move

Add more debug logs

Add +e to see what fails now

try direct make
2020-06-13 09:55:03 +02:00

24 lines
913 B
Bash
Executable File

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
export CLANG_BIN=$HOME/.konan/dependencies/clang-llvm-8.0.0-linux-x86-64/bin
cd sodiumWrapper
./makeLinuxX86-64.sh
#Workaround for travis using wrong ld
if [ "$TRAVIS" = "true" ]
then
sudo mv /usr/bin/ld /usr/bin/ld.bck
sudo ln -s $CLANG_BIN/ld.lld /usr/bin/ld
fi
./makeLinuxArm64.sh
#now we can do the delegated build
cd ..
./gradlew multiplatform-crypto-delegated:build
#and finally pure build
./gradlew multiplatform-crypto:build
./gradlew publishJvmPublicationToSnapshotRepository publishJsPublicationToSnapshotRepository \
publishKotlinMultiplatformPublicationToSnapshotRepository publishLinuxX64PublicationToSnapshotRepository \
publishLinuxArm64PublicationToSnapshotRepository publishMetadataPublicationToSnapshotRepository
set +e