Complete foundation delivery and record verified project status

This commit is contained in:
dingo
2026-09-19 09:16:26 -04:00
parent 8ab48d3a56
commit 9e412736d9
22 changed files with 581 additions and 128 deletions
+49
View File
@@ -0,0 +1,49 @@
#!/usr/bin/env bash
set -euo pipefail
# Run inside the Dockerfile's ci-toolchain stage, not an arbitrary host shell.
suite="${1:?Expected checks or tsan}"
cmake --version
g++-14 --version
clang++-19 --version
clang-format-19 --version
clang-tidy-19 --version
uname -a
check_preset() {
local preset="$1"
local compiler="$2"
cmake --preset "$preset" "-DCMAKE_CXX_COMPILER=$compiler"
cmake --build --preset "$preset" --parallel 2
ctest --preset "$preset" --no-tests=error --timeout 120
}
case "$suite" in
checks)
check_preset debug g++-14
cmake --build --preset debug --target format-check
check_preset release g++-14
check_preset analysis clang++-19
check_preset asan clang++-19
./build/release/evo-benchmark
./build/release/evo-sim --seed 123456 --entities 8 --ticks 1000000 --verify-replay
cmake --preset debug -B build/fuzz -DCMAKE_CXX_COMPILER=clang++-19 \
-DEVO_BUILD_FUZZER=ON
cmake --build build/fuzz --target evo-snapshot-fuzz --parallel 2
mkdir -p build/fuzz/corpus
./build/release/evo-sim --seed 0 --entities 0 --ticks 0 \
--save build/fuzz/corpus/empty.evo
./build/release/evo-sim --seed 123456 --entities 8 --ticks 1000 \
--save build/fuzz/corpus/eight.evo
./build/fuzz/evo-snapshot-fuzz build/fuzz/corpus -seed=123456 \
-runs=10000 -max_len=65536 -timeout=10 -rss_limit_mb=1024
;;
tsan)
check_preset tsan clang++-19
;;
*)
echo 'Expected checks or tsan' >&2
exit 2
;;
esac
+34
View File
@@ -0,0 +1,34 @@
#!/usr/bin/env bash
set -euo pipefail
: "${HARBOR_USERNAME:?Set the HARBOR_USERNAME repository secret}"
: "${HARBOR_PASSWORD:?Set the HARBOR_PASSWORD repository secret}"
: "${HARBOR_PROJECT:?Set the HARBOR_PROJECT repository variable}"
: "${HARBOR_REPOSITORY:?Set HARBOR_REPOSITORY or use evo-sim}"
: "${RUNNER_TEMP:?This script runs in Gitea Actions}"
if [[ ! "$HARBOR_PROJECT" =~ ^[a-z0-9][a-z0-9_-]*$ ]] ||
[[ ! "$HARBOR_REPOSITORY" =~ ^[a-z0-9][a-z0-9._-]*$ ]]; then
echo 'Harbor project/repository must be single lowercase path segments.' >&2
exit 2
fi
# Never replace a shared runner's Docker credentials. This directory is ours alone.
export DOCKER_CONFIG
DOCKER_CONFIG="$(mktemp -d "$RUNNER_TEMP/aevolution-docker.XXXXXX")"
trap 'rm -rf -- "$DOCKER_CONFIG"' EXIT
printf '%s' "$HARBOR_PASSWORD" | docker login registry.aeternalisgames.com \
--username "$HARBOR_USERNAME" --password-stdin
source_image="aevolution-proof:${GITHUB_SHA}-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
target_image="registry.aeternalisgames.com/${HARBOR_PROJECT}/${HARBOR_REPOSITORY}:sha-${GITHUB_SHA}-run-${GITHUB_RUN_NUMBER}-${GITHUB_RUN_ATTEMPT}"
docker tag "$source_image" "$target_image"
docker push "$target_image"
repository="registry.aeternalisgames.com/${HARBOR_PROJECT}/${HARBOR_REPOSITORY}"
digest="$(docker image inspect --format '{{range .RepoDigests}}{{println .}}{{end}}' "$target_image" | grep -F "$repository@sha256:")"
if [[ ! "$digest" =~ ^registry\.aeternalisgames\.com/.+@sha256:[a-f0-9]{64}$ ]]; then
echo 'Registry digest was not resolved; do not promote this image.' >&2
exit 1
fi
printf 'Published commit %s as %s\nDigest: %s\n' "$GITHUB_SHA" "$target_image" "$digest"
printf 'Commit: `%s`\n\nImage: `%s`\n\nDigest: `%s`\n' \
"$GITHUB_SHA" "$target_image" "$digest" >> "$GITHUB_STEP_SUMMARY"
+10 -7
View File
@@ -12,17 +12,20 @@ $visualStudioRoot = & $vswherePath -latest -version '[17.0,18.0)' -products '*'
if (!$visualStudioRoot) { throw 'Visual Studio 2022 C++ build tools are required' }
$developerScript = Join-Path $visualStudioRoot 'Common7\Tools\VsDevCmd.bat'
# cmd only initializes compiler environment; all filesystem work stays in PowerShell/CMake.
$environmentCommand = 'call "{0}" -no_logo -arch=x64 -host_arch=x64 && set' -f $developerScript
$environmentLines = & $env:ComSpec /d /c $environmentCommand
if ($LASTEXITCODE -ne 0) { throw 'Visual Studio environment initialization failed' }
foreach ($line in $environmentLines) {
if ($line -match '^([^=]+)=(.*)$') {
[Environment]::SetEnvironmentVariable($matches[1], $matches[2], 'Process')
$configuredRoot = if ($env:VSINSTALLDIR) { $env:VSINSTALLDIR.TrimEnd('\') } else { '' }
if (!$env:VSCMD_VER -or $env:VSCMD_ARG_TGT_ARCH -ne 'x64' -or $configuredRoot -ne $visualStudioRoot.TrimEnd('\')) {
$environmentCommand = 'call "{0}" -no_logo -arch=x64 -host_arch=x64 && set' -f $developerScript
$environmentLines = & $env:ComSpec /d /c $environmentCommand
if ($LASTEXITCODE -ne 0) { throw 'Visual Studio environment initialization failed' }
foreach ($line in $environmentLines) {
if ($line -match '^([^=]+)=(.*)$') {
[Environment]::SetEnvironmentVariable($matches[1], $matches[2], 'Process')
}
}
}
$cmakeRoot = Join-Path $visualStudioRoot 'Common7\IDE\CommonExtensions\Microsoft\CMake'
$llvmRoot = Join-Path $visualStudioRoot 'VC\Tools\Llvm\x64\bin'
$env:Path = "$cmakeRoot\CMake\bin;$cmakeRoot\Ninja;$llvmRoot;$env:Path"
$env:Path = ((@("$cmakeRoot\CMake\bin", "$cmakeRoot\Ninja", $llvmRoot) + $env:Path.Split(';')) | Select-Object -Unique) -join ';'
Push-Location -LiteralPath $repositoryRoot
try {
if ($Action -in @('configure', 'check')) {