Initialize reproducible release compiler flags
Modular container CI / release-build (push) Failing after 23m7s

This commit is contained in:
faumaray committed 2026-08-01 21:23:27 +03:00
1 parent b217d79a2b
commit ebb1040a71
2 files changed
+39 -2

No files matched your search

+18 -1
View File
@@ -263,7 +263,24 @@ while IFS=$'\t' read -r option value; do
done < <(jq -r '.cmakeOptions | to_entries[] | [.key, .value] | @tsv' \
"$configuration")
cmake "${cmake_arguments[@]}"
component_prefix_maps=(
"$source_root=$component_id"
"$build=${component_id}Build"
"$components=EchoionComponents"
"$dependencies=EchoionDependencies"
)
component_c_flags=${CFLAGS:-}
component_cxx_flags=${CXXFLAGS:-}
for component_prefix_map in "${component_prefix_maps[@]}"; do
component_c_flags+=" -ffile-prefix-map=$component_prefix_map"
component_c_flags+=" -fmacro-prefix-map=$component_prefix_map"
component_c_flags+=" -fdebug-prefix-map=$component_prefix_map"
component_cxx_flags+=" -ffile-prefix-map=$component_prefix_map"
component_cxx_flags+=" -fmacro-prefix-map=$component_prefix_map"
component_cxx_flags+=" -fdebug-prefix-map=$component_prefix_map"
done
CFLAGS="$component_c_flags" CXXFLAGS="$component_cxx_flags" \
cmake "${cmake_arguments[@]}"
cmake --build "$build" --config RelWithDebInfo --parallel
ctest --test-dir "$build" --build-config RelWithDebInfo --output-on-failure
cmake --install "$build" --config RelWithDebInfo
+21 -1
View File
@@ -382,9 +382,29 @@ configure_args+=(
web_frontend="$component_workspace/EchoionWeb/frontend"
npm --prefix "$web_frontend" ci --no-audit --no-fund
cmake -E rm -rf "$web_frontend/web-dist"
release_prefix_maps=(
"$source_dir=Echoion"
"$build_dir=EchoionBuild"
"$component_workspace=EchoionComponents"
)
[[ -z $void_source ]] ||
release_prefix_maps+=("$void_source=VoidLibrary")
[[ -z $void_teamspeak_source ]] ||
release_prefix_maps+=("$void_teamspeak_source=VoidTeamspeak")
release_c_flags=${CFLAGS:-}
release_cxx_flags=${CXXFLAGS:-}
for release_prefix_map in "${release_prefix_maps[@]}"; do
release_c_flags+=" -ffile-prefix-map=$release_prefix_map"
release_c_flags+=" -fmacro-prefix-map=$release_prefix_map"
release_c_flags+=" -fdebug-prefix-map=$release_prefix_map"
release_cxx_flags+=" -ffile-prefix-map=$release_prefix_map"
release_cxx_flags+=" -fmacro-prefix-map=$release_prefix_map"
release_cxx_flags+=" -fdebug-prefix-map=$release_prefix_map"
done
(
cd "$source_dir"
cmake "${configure_args[@]}"
CFLAGS="$release_c_flags" CXXFLAGS="$release_cxx_flags" \
cmake "${configure_args[@]}"
)
build_args=(--build "$build_dir" --config RelWithDebInfo)
[[ -n $jobs ]] && build_args+=(--parallel "$jobs")