mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-31 10:41:08 +00:00
ci: Check windows manifests for all executables
The other executables have manifests and these should be checked in addition to bitcoind. Skipping fuzz.exe, bench_bitcoin.exe and test_bitcoin-qt.exe as they do not have manifests. Github-Pull: #32513 Rebased-From: 156927903d64297500dd73380908c654b07bfb1a
This commit is contained in:
parent
4664621abe
commit
0f01a4c245
40
.github/workflows/ci.yml
vendored
40
.github/workflows/ci.yml
vendored
@ -268,14 +268,26 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cmake --build . -j $NUMBER_OF_PROCESSORS --config Release
|
cmake --build . -j $NUMBER_OF_PROCESSORS --config Release
|
||||||
|
|
||||||
- name: Get bitcoind manifest
|
- name: Check executable manifests
|
||||||
if: matrix.job-type == 'standard'
|
if: matrix.job-type == 'standard'
|
||||||
working-directory: build
|
working-directory: build
|
||||||
|
shell: pwsh -Command "$PSVersionTable; $PSNativeCommandUseErrorActionPreference = $true; $ErrorActionPreference = 'Stop'; & '{0}'"
|
||||||
run: |
|
run: |
|
||||||
mt.exe -nologo -inputresource:bin/Release/bitcoind.exe -out:bitcoind.manifest
|
mt.exe -nologo -inputresource:bin\Release\bitcoind.exe -out:bitcoind.manifest
|
||||||
cat bitcoind.manifest
|
Get-Content bitcoind.manifest
|
||||||
echo
|
|
||||||
mt.exe -nologo -inputresource:bin/Release/bitcoind.exe -validate_manifest
|
Get-ChildItem -Filter "bin\Release\*.exe" | ForEach-Object {
|
||||||
|
$exeName = $_.Name
|
||||||
|
|
||||||
|
# Skip as they currently do not have manifests
|
||||||
|
if ($exeName -eq "fuzz.exe" -or $exeName -eq "bench_bitcoin.exe" -or $exeName -eq "test_bitcoin-qt.exe") {
|
||||||
|
Write-Host "Skipping $exeName (no manifest present)"
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Host "Checking $exeName"
|
||||||
|
& mt.exe -nologo -inputresource:$_.FullName -validate_manifest
|
||||||
|
}
|
||||||
|
|
||||||
- name: Run test suite
|
- name: Run test suite
|
||||||
if: matrix.job-type == 'standard'
|
if: matrix.job-type == 'standard'
|
||||||
@ -377,12 +389,24 @@ jobs:
|
|||||||
|
|
||||||
- *SET_UP_VS
|
- *SET_UP_VS
|
||||||
|
|
||||||
- name: Get bitcoind manifest
|
- name: Check executable manifests
|
||||||
shell: pwsh
|
shell: pwsh -Command "$PSVersionTable; $PSNativeCommandUseErrorActionPreference = $true; $ErrorActionPreference = 'Stop'; & '{0}'"
|
||||||
run: |
|
run: |
|
||||||
mt.exe -nologo -inputresource:bin\bitcoind.exe -out:bitcoind.manifest
|
mt.exe -nologo -inputresource:bin\bitcoind.exe -out:bitcoind.manifest
|
||||||
Get-Content bitcoind.manifest
|
Get-Content bitcoind.manifest
|
||||||
mt.exe -nologo -inputresource:bin\bitcoind.exe -validate_manifest
|
|
||||||
|
Get-ChildItem -Filter "bin\*.exe" | ForEach-Object {
|
||||||
|
$exeName = $_.Name
|
||||||
|
|
||||||
|
# Skip as they currently do not have manifests
|
||||||
|
if ($exeName -eq "fuzz.exe" -or $exeName -eq "bench_bitcoin.exe") {
|
||||||
|
Write-Host "Skipping $exeName (no manifest present)"
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Host "Checking $exeName"
|
||||||
|
& mt.exe -nologo -inputresource:$_.FullName -validate_manifest
|
||||||
|
}
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
# Can't use ctest here like other jobs as we don't have a CMake build tree.
|
# Can't use ctest here like other jobs as we don't have a CMake build tree.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user