mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-04 18:22:57 +02:00
ci: Rely on cmake --preset toolchain file
This is the standard approach and avoids relying on VCPKG_INSTALLATION_ROOT and -DCMAKE_TOOLCHAIN_FILE= in the ci-windows.py script. This makes it easier to run locally.
This commit is contained in:
7
.github/ci-windows.py
vendored
7
.github/ci-windows.py
vendored
@@ -39,12 +39,6 @@ GENERATE_OPTIONS = {
|
||||
|
||||
|
||||
def generate(ci_type):
|
||||
toolchain_file = os.path.join(
|
||||
os.environ["VCPKG_INSTALLATION_ROOT"],
|
||||
"scripts",
|
||||
"buildsystems",
|
||||
"vcpkg.cmake",
|
||||
)
|
||||
command = [
|
||||
"cmake",
|
||||
"-B",
|
||||
@@ -52,7 +46,6 @@ def generate(ci_type):
|
||||
"-Werror=dev",
|
||||
"--preset",
|
||||
"vs2022",
|
||||
f"-DCMAKE_TOOLCHAIN_FILE={toolchain_file}",
|
||||
] + GENERATE_OPTIONS[ci_type]
|
||||
run(command)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user