diff --git a/travis/setup_variables.sh b/travis/setup_variables.sh index 0635966..f49175f 100755 --- a/travis/setup_variables.sh +++ b/travis/setup_variables.sh @@ -12,7 +12,9 @@ export TDNATIVES_CPP_BUILD_DIR=$TRAVIS_BUILD_DIR/build-tdlib export JAVA_SRC_DIR=$TRAVIS_BUILD_DIR/src/tdlib-java export TDLIB_SERIALIZER_DIR=$TRAVIS_BUILD_DIR/dependencies/tdlib-serializer export MAVEN_OPTS="--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/javax.crypto=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED" -export TRAVIS_CPU_ARCH_JAVA="${TRAVIS_CPU_ARCH,,}" +if [ "$TRAVIS_OS_NAME_STANDARD" = "linux" ]; then + export TRAVIS_CPU_ARCH_JAVA="${TRAVIS_CPU_ARCH,,}" +fi if [ "$TRAVIS_CPU_ARCH" = "arm64" ]; then export TRAVIS_CPU_ARCH_STANDARD="aarch64" export TRAVIS_CPU_CORES="2"