-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vcpkg] Move CI cleaning back out of the 'ci' command into a separate…
… command to restore cross-compilation preinstalls. (#11545)
- Loading branch information
1 parent
1982faa
commit d9b4acf
Showing
10 changed files
with
53 additions
and
16 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
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,32 @@ | ||
#include "pch.h" | ||
|
||
#include <vcpkg/base/checks.h> | ||
#include <vcpkg/base/files.h> | ||
#include <vcpkg/commands.h> | ||
#include <vcpkg/vcpkgcmdarguments.h> | ||
|
||
using namespace vcpkg; | ||
|
||
namespace vcpkg::Commands::CIClean | ||
{ | ||
void perform_and_exit(const VcpkgCmdArguments&, const VcpkgPaths& paths) | ||
{ | ||
auto& fs = paths.get_filesystem(); | ||
if (fs.is_directory(paths.buildtrees)) | ||
{ | ||
fs.remove_all_inside(paths.buildtrees, VCPKG_LINE_INFO); | ||
} | ||
|
||
if (fs.is_directory(paths.installed)) | ||
{ | ||
fs.remove_all_inside(paths.installed, VCPKG_LINE_INFO); | ||
} | ||
|
||
if (fs.is_directory(paths.packages)) | ||
{ | ||
fs.remove_all_inside(paths.packages, VCPKG_LINE_INFO); | ||
} | ||
|
||
Checks::exit_success(VCPKG_LINE_INFO); | ||
} | ||
} |
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