18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-29 06:47:43 +01:00

docs/build: track_uneven_doc.md to docs/, the local ImGui changes listed, the audio license texts kept in ref/licenses (#495)

* docs: track_uneven_doc.md from the root of the repository to docs/ (#237)

The tool that grades the tracks points to its new place; directoryDescription.md
names docs/.

* docs: the local changes of the bundled ImGui (#236)

docs/imgui_patches.md lists what imgui/ changes against upstream
v1.91.9b-docking (io.ConfigViewportsNoAutoDetach, io.ConfigTooltipsWrapWidth,
BufferingBar/Spinner, the glad loader, the main-window origin of the GLFW
backend, the gamma of the OpenGL 3 backend) and in ImGuizmo, with the commits
that brought them, so an update of ImGui carries them over.

* build: the license texts of the audio DLLs from ref/licenses instead of downloads (#405)

The Windows build downloaded 14 license texts on every run without a cache
hit, from raw.githubusercontent.com, scm.orgis.org (mpg123) and
sources.debian.org (LAME). They are now in ref/licenses, byte for byte as at
the pinned URLs (-text in .gitattributes, so a checkout with CRLF doesn't
change them), and the step copies them from there, still checked by their
SHA-256. ref/licenses/README.md names the URL of each. The two release zips
are still downloaded and cached as before.

* docs: the ImAbs shim of ImGuizmo listed, stale comments of the DLL step, a plain docs/ row
This commit is contained in:
jerrrrycho
2026-11-25 05:24:58 +01:00
committed by GitHub
parent c65ba4f39a
commit df95395ded
21 changed files with 2570 additions and 37 deletions

View File

@@ -180,9 +180,9 @@ jobs:
-Recurse `
-Force
# The downloads of the next step, kept between the runs: a release or raw.githubusercontent.com out of reach then
# doesn't fail the build. The key is this file, which pins them; a cache of an older one is taken too, as the next
# step checks every file by its SHA-256 and downloads only those it doesn't have.
# The downloads of the next step, kept between the runs: a release out of reach then doesn't fail the build. The
# key is this file, which pins them; a cache of an older one is taken too, as the next step checks every file by
# its SHA-256 and downloads only those it doesn't have.
- name: Restore the audio library downloads
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
@@ -199,7 +199,8 @@ jobs:
# go with both variants. The exe links them by name: soft_oal.dll is shipped as OpenAL32.dll (as its readme says,
# without the router), sndfile.dll as libsndfile-1.dll. Both are LGPL, so their license texts go with them, in
# licenses/, with those of what the DLLs have built in (below); the libsndfile zip has none, its COPYING is taken
# from the source tree of the same tag.
# from the source tree of the same tag. Those texts are kept in ref/licenses (with where each comes from), so the
# build doesn't depend on the servers they come from.
- name: Add the OpenAL Soft and libsndfile DLLs
shell: pwsh
timeout-minutes: 10
@@ -214,7 +215,7 @@ jobs:
$pinned = [System.Collections.Generic.List[string]]::new()
# the file of the URL with the given SHA-256: the one kept by a run before, else downloaded. named by its
# SHA-256 and the last part of its path, without the query: several license texts are named the same
# SHA-256 and the last part of its path, without the query
function Get-Pinned([string] $Url, [string] $Sha256) {
$name = "$Sha256-$([uri]::new($Url).Segments[-1])"
$pinned.Add($name)
@@ -223,7 +224,6 @@ jobs:
Write-Host "$Url kept by a run before"
return $file
}
# not a browser's user agent, which Debian's server answers with a challenge page
Invoke-WebRequest -Uri $Url -OutFile $file -UserAgent 'ci-download' -MaximumRetryCount 3 -RetryIntervalSec 10 -TimeoutSec 120
$hash = (Get-FileHash -Algorithm SHA256 -Path $file).Hash.ToLowerInvariant()
if ($hash -ne $Sha256) {
@@ -262,39 +262,30 @@ jobs:
# The versions in sndfile.dll: those it names (libopus 1.4, libFLAC 1.4.2, libVorbis 1.3.7), mpg123 1.31.3 by
# the SHA-512 of its source archive in the build paths it keeps, and libogg 1.3.5 and LAME 3.100 of the vcpkg
# ports of the time (mid 2023). LAME's from Debian's copy of the 3.100 source, the same file as in LAME's own
# repository on SourceForge, which may answer a script with a challenge page
# repository on SourceForge. The texts are in ref/licenses, whose README names the URL of each; each is
# checked by its SHA-256, so an edit or a line ending changed on the way doesn't go out unnoticed
$texts = [ordered]@{
'libsndfile-COPYING.txt' = @('https://raw.githubusercontent.com/libsndfile/libsndfile/1.2.2/COPYING'
'ad01ea5cd2755f6048383c8d54c88459cd6fcb17757c5c8892f8c5ea060f6140')
'libsndfile-ALAC-LICENSE.txt' = @('https://raw.githubusercontent.com/libsndfile/libsndfile/1.2.2/src/ALAC/LICENSE'
'232efbd83786e157286b0b96c68ebb673541b69b33036287bf1e5ec5067a49d9')
'libsndfile-GSM610-COPYRIGHT.txt' = @('https://raw.githubusercontent.com/libsndfile/libsndfile/1.2.2/src/GSM610/COPYRIGHT'
'1bbe7119b1bcd1489e0f36cb95b8902f7f0ceec9a2f3a67394bc9f4709a4e0a7')
'libogg-COPYING.txt' = @('https://raw.githubusercontent.com/xiph/ogg/v1.3.5/COPYING'
'd2ab5758336489da61c12cc5bb757da5339c4ae9001f9bb0562b4370249af814')
'libvorbis-COPYING.txt' = @('https://raw.githubusercontent.com/xiph/vorbis/v1.3.7/COPYING'
'ec1815db59fcd302846df949d7424876cb2e2dc5ed1606c5fb0b36787b1cf43a')
'flac-COPYING.Xiph.txt' = @('https://raw.githubusercontent.com/xiph/flac/1.4.2/COPYING.Xiph'
'6e58d3036f05e2a0d58af854c12a505ddbe75011d71a598a2170987f3b15408d')
'opus-COPYING.txt' = @('https://raw.githubusercontent.com/xiph/opus/v1.4/COPYING'
'8338ce8d922bb4416ce3dd1e5680173332435e3f0755007ac7801ccd674fe682')
'mpg123-COPYING.txt' = @('https://scm.orgis.org/view/mpg123/tags/1.31.3/COPYING?view=co'
'c22482728a634a8dfdb4ff72a96d4c1ed64cd8f3e79335c401751ac591609366')
'lame-COPYING.txt' = @('https://sources.debian.org/data/main/l/lame/3.100-6/COPYING'
'bfe4a52dc4645385f356a8e83cc54216a293e3b6f1cb4f79f5fc0277abf937fd')
'openal-soft-pffft-LICENSE.txt' = @('https://raw.githubusercontent.com/kcat/openal-soft/1.25.2/LICENSE-pffft'
'64056328b3e7bc104e24ef96accc1a7abead156f0c02d1b87c97e3f3a28030de')
'openal-soft-gsl-LICENSE.txt' = @('https://raw.githubusercontent.com/kcat/openal-soft/1.25.2/gsl/LICENSE'
'4c21dc82a1c7186ea754fd59d504c00947953a3401fe8e24eaa44109ef8e2555')
'openal-soft-BSD-3Clause.txt' = @('https://raw.githubusercontent.com/kcat/openal-soft/1.25.2/BSD-3Clause'
'b5a08cf98996dd83aa906a72c163600f6cb17a65ce546a553815a1267abd43ff')
'openal-soft-winpthreads-COPYING.txt' = @('https://raw.githubusercontent.com/mingw-w64/mingw-w64/v13.0.0/mingw-w64-libraries/winpthreads/COPYING'
'63263614cdd29f2f93cba85e992f041b31f9fc7b4033692f31269489a8a1b177')
'openal-soft-mingw-w64-runtime.txt' = @('https://raw.githubusercontent.com/mingw-w64/mingw-w64/v13.0.0/COPYING.MinGW-w64-runtime/COPYING.MinGW-w64-runtime.txt'
'e9b2dc02451ea29092a1f25fa0f3c07207ed421f1807dffb0c4e6dce69dee7bd')
'libsndfile-COPYING.txt' = 'ad01ea5cd2755f6048383c8d54c88459cd6fcb17757c5c8892f8c5ea060f6140'
'libsndfile-ALAC-LICENSE.txt' = '232efbd83786e157286b0b96c68ebb673541b69b33036287bf1e5ec5067a49d9'
'libsndfile-GSM610-COPYRIGHT.txt' = '1bbe7119b1bcd1489e0f36cb95b8902f7f0ceec9a2f3a67394bc9f4709a4e0a7'
'libogg-COPYING.txt' = 'd2ab5758336489da61c12cc5bb757da5339c4ae9001f9bb0562b4370249af814'
'libvorbis-COPYING.txt' = 'ec1815db59fcd302846df949d7424876cb2e2dc5ed1606c5fb0b36787b1cf43a'
'flac-COPYING.Xiph.txt' = '6e58d3036f05e2a0d58af854c12a505ddbe75011d71a598a2170987f3b15408d'
'opus-COPYING.txt' = '8338ce8d922bb4416ce3dd1e5680173332435e3f0755007ac7801ccd674fe682'
'mpg123-COPYING.txt' = 'c22482728a634a8dfdb4ff72a96d4c1ed64cd8f3e79335c401751ac591609366'
'lame-COPYING.txt' = 'bfe4a52dc4645385f356a8e83cc54216a293e3b6f1cb4f79f5fc0277abf937fd'
'openal-soft-pffft-LICENSE.txt' = '64056328b3e7bc104e24ef96accc1a7abead156f0c02d1b87c97e3f3a28030de'
'openal-soft-gsl-LICENSE.txt' = '4c21dc82a1c7186ea754fd59d504c00947953a3401fe8e24eaa44109ef8e2555'
'openal-soft-BSD-3Clause.txt' = 'b5a08cf98996dd83aa906a72c163600f6cb17a65ce546a553815a1267abd43ff'
'openal-soft-winpthreads-COPYING.txt' = '63263614cdd29f2f93cba85e992f041b31f9fc7b4033692f31269489a8a1b177'
'openal-soft-mingw-w64-runtime.txt' = 'e9b2dc02451ea29092a1f25fa0f3c07207ed421f1807dffb0c4e6dce69dee7bd'
}
foreach ($text in $texts.GetEnumerator()) {
$file = Get-Pinned $text.Value[0] $text.Value[1]
$file = Join-Path 'ref/licenses' $text.Key
$hash = (Get-FileHash -Algorithm SHA256 -Path $file).Hash.ToLowerInvariant()
if ($hash -ne $text.Value) {
throw "${file}: SHA-256 $hash, expected $($text.Value)"
}
Copy-Item -Path $file -Destination (Join-Path $licenses $text.Key) -Force
}