Files
msime-windows/scripts/ci/install-boost.ps1
T
Evan Hu d59be91390 refactor(ci): move every release shell step into scripts/ci
release.yml had grown thirteen inline shell and PowerShell blocks, some of them twenty lines, which made the workflow hard to read and impossible to lint or run outside Actions. Each one is now a file under scripts/ci and the workflow only wires them up.

Two things fall out of the move rather than being separate changes. The two signing steps were near-duplicates and are now one sign-binaries.ps1 taking a path list, used for both the packaged binaries and the finished installer. The pinned Inno Setup language file URL and checksum move to the packaging job's env, where they read as configuration instead of being buried mid-script.

The Server job now checks this repository out into automation/ for its two scripts. That checkout has to come after the MSIME-Server one, because checkout cleans its destination and the workspace root would take automation/ with it.

shellcheck is clean on all six shell scripts. The PowerShell is not syntax-checked here for lack of pwsh, but four of the seven are verbatim from steps that already ran green in run 33953797415.
2026-09-05 17:19:51 +09:00

22 lines
1005 B
PowerShell

# Install the Boost packages MSIME-Server links but does not declare.
#
# Kept in step with metasequoiaime/MSIME-Server's own CI. Boost is linked statically but is not in
# its vcpkg.json, so it cannot come from the manifest. The triplet has to be static-md, not static:
# Boost_USE_STATIC_LIBS ON asks for static Boost libraries while the rest of the project builds
# against the dynamic CRT, and plain x64-windows-static would switch Boost to the static CRT and
# fail to link with LNK2038 RuntimeLibrary mismatches.
#
# Appends BOOST_ROOT to GITHUB_ENV, which is the override MSIME-Server's CMakeLists.txt supports.
$ErrorActionPreference = 'Stop'
Push-Location $env:VCPKG_INSTALLATION_ROOT
try {
./vcpkg install boost-locale:x64-windows-static-md boost-json:x64-windows-static-md
if ($LASTEXITCODE -ne 0) { throw "vcpkg install failed with exit code $LASTEXITCODE" }
}
finally {
Pop-Location
}
"BOOST_ROOT=$env:VCPKG_INSTALLATION_ROOT/installed/x64-windows-static-md" >> $env:GITHUB_ENV