'Generic Commit'
Some checks failed
Build-Test-Publish / build (push) Failing after 9s

This commit is contained in:
Your Name
2025-06-15 18:15:45 +12:00
parent f67a1f8fe3
commit f5346eddc7
10 changed files with 397 additions and 299 deletions

View File

@ -1,21 +1,22 @@
#!/bin/bash
set -euo pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
TEMP_DIR=$(mktemp -d)
trap 'rm -rf "${TEMP_DIR}"' EXIT
function getbin() {
local BIN_NAME="$1"
curl -L -o "${TEMP_DIR}/${BIN_NAME}" "https://getbin.xyz/${BIN_NAME}"
chmod +x "${TEMP_DIR}/${BIN_NAME}"
}
export CMAKE_BUILD_TYPE="Debug"
getbin "dropshell-build"
rm -rf "${SCRIPT_DIR}/output"
mkdir -p "${SCRIPT_DIR}/output"
rm -rf "${SCRIPT_DIR}/build"
PROJECT="dropshell-tool"
"${TEMP_DIR}/dropshell-build" -r -m "${SCRIPT_DIR}"
docker build \
-t "${PROJECT}-build" \
-f "${SCRIPT_DIR}/Dockerfile.dropshell-build" \
--build-arg PROJECT="${PROJECT}" \
--build-arg CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE}" \
--output "${SCRIPT_DIR}/output" \
"${SCRIPT_DIR}"