forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the ability to do full rebuilds with updated copies of vcpkg-tool. (
microsoft#24611) * Add the ability to do full rebuilds with updated copies of vcpkg-tool. Resurrection of microsoft#23753 * Extract all scripts out of inline blocks. * Replicate all changes to the "unstable" testing. * Fix bootstrap :) * Fix version files validation path. * Malformed. * Paths and permissions. * Fixed file name typo * Update scripts/azure-pipelines/bootstrap-from-source.sh Co-authored-by: Robert Schumacher <[email protected]> Co-authored-by: Robert Schumacher <[email protected]>
- Loading branch information
1 parent
413c11d
commit 4c82b77
Showing
9 changed files
with
118 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
git clone https://github.com/microsoft/vcpkg-tool vcpkg-tool | ||
git -C vcpkg-tool switch -d $1 | ||
rm -rf build.x64.release | ||
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DVCPKG_DEVELOPMENT_WARNINGS=OFF -DVCPKG_WARNINGS_AS_ERRORS=OFF -DVCPKG_BUILD_FUZZING=OFF -DVCPKG_BUILD_TLS12_DOWNLOADER=OFF -B build.x64.release -S vcpkg-tool | ||
ninja -C build.x64.release | ||
mv build.x64.release/vcpkg vcpkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=x86 -host_arch=x86 | ||
git clone https://github.com/microsoft/vcpkg-tool vcpkg-tool | ||
git -C vcpkg-tool switch -d %1 | ||
rmdir /s /q build.x86.release > nul 2> nul | ||
cmake.exe -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DVCPKG_DEVELOPMENT_WARNINGS=OFF -DVCPKG_WARNINGS_AS_ERRORS=OFF -DVCPKG_BUILD_FUZZING=OFF -DVCPKG_BUILD_TLS12_DOWNLOADER=OFF -B build.x86.release -S vcpkg-tool | ||
ninja.exe -C build.x86.release | ||
move build.x86.release\vcpkg.exe vcpkg.exe |
29 changes: 29 additions & 0 deletions
29
scripts/azure-pipelines/windows/validate-version-files.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
./vcpkg.exe --feature-flags=versions x-ci-verify-versions --verbose | | ||
ForEach-Object -Begin { | ||
$long_error = '' | ||
} -Process { | ||
if ($long_error -ne '' -and $_ -match '^$|^ ') { | ||
# Extend multi-line message | ||
$long_error = -join($long_error, "%0D%0A", $_ -replace '^ ','' ` | ||
-replace '(git add) [^ ]*\\ports\\([^ ]*)', '$1 ports/$2' ) | ||
} else { | ||
if ($long_error -ne '') { | ||
# Flush multi-line message | ||
$long_error | ||
$long_error = '' | ||
} | ||
if ($_ -match '^Error: ') { | ||
# Start multi-line message | ||
$long_error = $_ -replace '^Error: ', '##vso[task.logissue type=error]' ` | ||
-replace '(^##vso[^\]]*)](.*) [^ ]*\\versions\\(.-)\\(.*.json)(.*)', '$1;sourcepath=versions/$3/$4;linenumber=2]$2 version/$3/$4$5' | ||
} else { | ||
# Normal line | ||
$_ | ||
} | ||
} | ||
} -End { | ||
if ($long_error -ne '') { | ||
# Flush multi-line message | ||
$long_error | ||
} | ||
} |