-
-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
46 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,7 @@ jobs: | |
run: | | ||
sudo apt install -y \ | ||
shellcheck | ||
. <(curl https://aka.ms/vcpkg-init.sh -L) | ||
- name: Run pre-commit hooks | ||
uses: pre-commit/[email protected] | ||
|
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,26 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import subprocess | ||
import sys | ||
import urllib.request | ||
import tempfile | ||
import os | ||
import fcntl | ||
|
||
|
||
def main(): | ||
if sys.platform == "win32": | ||
cmd = ("vcpkg", "format-manifest", *sys.argv[1:]) | ||
else: | ||
vcpkg_exe = os.path.join(os.path.expanduser("~"), ".vcpkg", "vcpkg") | ||
if not os.path.isfile(vcpkg_exe): | ||
print( | ||
f"{vcpkg_exe} not found: bootstrap it by running \n\n . <(curl https://aka.ms/vcpkg-init.sh -L)\n\nSee https://github.com/microsoft/vcpkg-tool/blob/main/README.md#installuseremove" | ||
) | ||
return 1 | ||
cmd = (vcpkg_exe, "format-manifest", *sys.argv[1:]) | ||
return subprocess.call(cmd) | ||
|
||
|
||
if __name__ == "__main__": | ||
exit(main()) |
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