CMake 3.25+, C++20, avertissements stricts, règles de déterminisme (pas de fast-math ni de contraction FMA), sanitizers et clang-tidy optionnels, doctest. Presets Windows/Linux/macOS, scripts build.ps1, build.sh et check.ps1 (pas de CI serveur). README de core, 3d et schema.
39 lines
1.1 KiB
PowerShell
39 lines
1.1 KiB
PowerShell
# SPDX-License-Identifier: MPL-2.0
|
|
#
|
|
# Verification locale complete avant commit (remplace la CI) :
|
|
# tous les presets Windows, puis Studio s'il existe.
|
|
# Messages en ASCII : compatible Windows PowerShell 5.1 sans BOM.
|
|
#
|
|
# .\scripts\check.ps1
|
|
# .\scripts\check.ps1 -SkipStudio
|
|
|
|
[CmdletBinding()]
|
|
param(
|
|
[switch]$SkipStudio
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
$root = Split-Path -Parent $PSScriptRoot
|
|
|
|
foreach ($preset in "windows-msvc-debug", "windows-msvc-release", "windows-msvc-asan") {
|
|
& (Join-Path $PSScriptRoot "build.ps1") -Preset $preset
|
|
}
|
|
|
|
$studio = Join-Path $root "studio"
|
|
if (-not $SkipStudio -and (Test-Path (Join-Path $studio "package.json"))) {
|
|
Push-Location $studio
|
|
try {
|
|
Write-Host "==> studio : npm ci" -ForegroundColor Cyan
|
|
npm ci
|
|
if ($LASTEXITCODE -ne 0) { throw "Echec : npm ci" }
|
|
Write-Host "==> studio : npm run check" -ForegroundColor Cyan
|
|
npm run check
|
|
if ($LASTEXITCODE -ne 0) { throw "Echec : npm run check" }
|
|
}
|
|
finally {
|
|
Pop-Location
|
|
}
|
|
}
|
|
|
|
Write-Host "Verification locale OK" -ForegroundColor Green
|