1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-16 22:37:30 +08:00

ci: rename pre-build step to pre-configure since that is when it runs

This commit is contained in:
Brad King
2025-10-03 18:12:45 -04:00
parent 0d01bc72b8
commit 206b831973
7 changed files with 9 additions and 9 deletions

View File

@@ -1,4 +0,0 @@
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().MainModule.FileName
if (Test-Path -Path ".gitlab/ci/pre_build_$env:CMAKE_CONFIGURATION.ps1" -PathType Leaf) {
. ".gitlab/ci/pre_build_$env:CMAKE_CONFIGURATION.ps1"
}

View File

@@ -0,0 +1,4 @@
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().MainModule.FileName
if (Test-Path -Path ".gitlab/ci/pre_configure_$env:CMAKE_CONFIGURATION.ps1" -PathType Leaf) {
. ".gitlab/ci/pre_configure_$env:CMAKE_CONFIGURATION.ps1"
}

View File

@@ -13,6 +13,6 @@ quietly() {
rm -f "$log"
}
if test -r ".gitlab/ci/pre_build_${CMAKE_CONFIGURATION}.sh"; then
source ".gitlab/ci/pre_build_${CMAKE_CONFIGURATION}.sh"
if test -r ".gitlab/ci/pre_configure_${CMAKE_CONFIGURATION}.sh"; then
source ".gitlab/ci/pre_configure_${CMAKE_CONFIGURATION}.sh"
fi

View File

@@ -715,7 +715,7 @@
- .gitlab/ci/sccache.sh
- sccache --start-server
- sccache --show-stats
- .gitlab/ci/pre_build.sh
- .gitlab/ci/pre_configure.sh
- "$LAUNCHER ctest -VV -S .gitlab/ci/ctest_configure.cmake"
- "$LAUNCHER ctest -VV -S .gitlab/ci/ctest_build.cmake"
- .gitlab/ci/post_build.sh

View File

@@ -200,7 +200,7 @@
# Allow the server to already be running.
- "sccache --start-server || :"
- sccache --show-stats
- .gitlab/ci/pre_build.sh
- .gitlab/ci/pre_configure.sh
- ctest -VV -S .gitlab/ci/ctest_configure.cmake
- ctest -VV -S .gitlab/ci/ctest_build.cmake
- .gitlab/ci/post_build.sh

View File

@@ -443,7 +443,7 @@
- Invoke-Expression -Command .gitlab/ci/vcvarsall.ps1
- sccache --start-server
- sccache --show-stats
- (& "$pwsh" -File ".gitlab/ci/pre_build.ps1")
- (& "$pwsh" -File ".gitlab/ci/pre_configure.ps1")
- ctest -VV -S .gitlab/ci/ctest_configure.cmake
- ctest -VV -S .gitlab/ci/ctest_build.cmake
- (& "$pwsh" -File ".gitlab/ci/post_build.ps1")