mysql/tools/scripts/build_unix_local.sh
Ruben Perez 3606474a50 Added ARM CIs
Added ARM docker images
Added ARM CIs for gcc and clang on Linux
Fixed a linker error on cmake when no CMAKE_CXX_STD
    is specified and the compiler defaults to C++03
ci.py now supports empty cxxstd for cmake

Close #130
Close #134
2023-03-26 23:28:46 +02:00

44 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
#
# Copyright (c) 2019-2023 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
set -e
BK=cmake
IMAGE=build-gcc11
CONTAINER=builder-$IMAGE-$BK
FULL_IMAGE=ghcr.io/anarthal-containers/$IMAGE
DB=mysql8
docker start $DB
docker start $CONTAINER || docker run -dit \
--name $CONTAINER \
-v ~/workspace/mysql:/opt/boost-mysql \
-v /var/run/mysqld:/var/run/mysqld \
$FULL_IMAGE
docker network connect my-net $CONTAINER || echo "Network already connected"
docker exec $CONTAINER python /opt/boost-mysql/tools/ci.py --source-dir=/opt/boost-mysql \
--build-kind=$BK \
--build-shared-libs=1 \
--valgrind=0 \
--coverage=0 \
--clean=0 \
--toolset=gcc \
--cxxstd=17 \
--variant=debug \
--cmake-standalone-tests=1 \
--cmake-add-subdir-tests=1 \
--cmake-install-tests=1 \
--cmake-build-type=Debug \
--stdlib=native \
--server-host=$DB \
--db=$DB
if [ "$BK" == "docs" ]; then
cp -r ~/workspace/mysql/doc/html ~/workspace/boost-root/libs/mysql/doc/
fi