cleanup matrix build

This commit is contained in:
2024-08-23 23:57:06 +02:00
parent 6849ff747d
commit d0f456db91
3 changed files with 25 additions and 26 deletions

View File

@@ -5,9 +5,9 @@ CMAKE_ARGS="${CMAKE_ARGS:--DCMAKE_BUILD_TYPE=Debug}"
export SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
cd "$SCRIPT_DIR"
if [[ -z "${DO_LOCAL_BUILD}" ]]; then
if [[ "${DO_LOCAL_BUILD^^}" != "TRUE" ]]; then
if [[ "$(uname)" == "Linux" ]]; then
if [[ -z "${CROSS_PLATFORM}" ]]; then
if [[ -z "${DOCKER_PLATFORM}" ]]; then
echo "Already on linux"
exit 0
fi

View File

@@ -1,8 +1,8 @@
#!/usr/bin/env bash
PLATFORM_ARG=""
if [[ ! -z "${CROSS_PLATFORM}" ]]; then
PLATFORM_ARG="--platform $CROSS_PLATFORM"
if [[ ! -z "${DOCKER_PLATFORM}" ]]; then
PLATFORM_ARG="--platform $DOCKER_PLATFORM"
fi
set -euxo pipefail