mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[vcpk-ci] Trigger some test ports from vcpkg.cmake changes (#23430)
* Trigger some test ports from vcpkg.cmake changes * Bump test port version * Revert "Bump test port version" * Use old toolchain version for parent hashes * Add ABI hashing note to vcpkg.cmake * Test vcpkg.cmake with cmake instead vpckg-ci-paraview
This commit is contained in:
parent
6ad0750a86
commit
7310241d5d
@ -165,11 +165,20 @@ if (($BuildReason -eq 'PullRequest') -and -not $NoParentHashes)
|
|||||||
$parentHashesFile = Join-Path $ArtifactStagingDirectory 'parent-hashes.json'
|
$parentHashesFile = Join-Path $ArtifactStagingDirectory 'parent-hashes.json'
|
||||||
$parentHashes = @("--parent-hashes=$parentHashesFile")
|
$parentHashes = @("--parent-hashes=$parentHashesFile")
|
||||||
& git revert -n -m 1 HEAD | Out-Null
|
& git revert -n -m 1 HEAD | Out-Null
|
||||||
|
# The vcpkg.cmake toolchain file is not part of ABI hashing,
|
||||||
|
# but changes must trigger at least some testing.
|
||||||
|
Copy-Item "scripts/buildsystems/vcpkg.cmake" -Destination "scripts/test_ports/cmake"
|
||||||
|
Copy-Item "scripts/buildsystems/vcpkg.cmake" -Destination "scripts/test_ports/cmake-user"
|
||||||
& "./vcpkg$executableExtension" ci $Triplet --dry-run --exclude=$skipList @hostArgs @commonArgs --no-binarycaching "--output-hashes=$parentHashesFile"
|
& "./vcpkg$executableExtension" ci $Triplet --dry-run --exclude=$skipList @hostArgs @commonArgs --no-binarycaching "--output-hashes=$parentHashesFile"
|
||||||
|
|
||||||
Write-Host "Running CI using parent hashes"
|
Write-Host "Running CI using parent hashes"
|
||||||
& git reset --hard HEAD
|
& git reset --hard HEAD
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# The vcpkg.cmake toolchain file is not part of ABI hashing,
|
||||||
|
# but changes must trigger at least some testing.
|
||||||
|
Copy-Item "scripts/buildsystems/vcpkg.cmake" -Destination "scripts/test_ports/cmake"
|
||||||
|
Copy-Item "scripts/buildsystems/vcpkg.cmake" -Destination "scripts/test_ports/cmake-user"
|
||||||
& "./vcpkg$executableExtension" ci $Triplet --x-xunit=$xmlFile --exclude=$skipList --failure-logs=$failureLogs @hostArgs @commonArgs @cachingArgs @parentHashes
|
& "./vcpkg$executableExtension" ci $Triplet --x-xunit=$xmlFile --exclude=$skipList --failure-logs=$failureLogs @hostArgs @commonArgs @cachingArgs @parentHashes
|
||||||
|
|
||||||
$failureLogsEmpty = (-Not (Test-Path $failureLogs) -Or ((Get-ChildItem $failureLogs).count -eq 0))
|
$failureLogsEmpty = (-Not (Test-Path $failureLogs) -Or ((Get-ChildItem $failureLogs).count -eq 0))
|
||||||
|
@ -4,6 +4,8 @@ mark_as_advanced(CMAKE_TOOLCHAIN_FILE)
|
|||||||
# NOTE: to figure out what cmake versions are required for different things,
|
# NOTE: to figure out what cmake versions are required for different things,
|
||||||
# grep for `CMake 3`. All version requirement comments should follow that format.
|
# grep for `CMake 3`. All version requirement comments should follow that format.
|
||||||
|
|
||||||
|
# Attention: Changes to this file do not affect ABI hashing.
|
||||||
|
|
||||||
#[===[.md:
|
#[===[.md:
|
||||||
# z_vcpkg_add_fatal_error
|
# z_vcpkg_add_fatal_error
|
||||||
Add a fatal error.
|
Add a fatal error.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user