Allow installing VCPKG inside working directory for GHA builds

This commit is contained in:
Julian Groß 2021-09-16 06:22:03 +02:00
parent f4f4137aa8
commit 8041f27713

View file

@ -61,7 +61,10 @@ endif()
self.noClean = True
else:
defaultBasePath = os.path.expanduser('~/vircadia-files/vcpkg')
self.basePath = os.getenv('HIFI_VCPKG_BASE', defaultBasePath)
if 'CI_WORKSPACE' in os.environ:
self.basePath = os.path.join(os.getenv('CI_WORKSPACE'), 'vircadia-files/vcpkg')
else:
self.basePath = os.getenv('HIFI_VCPKG_BASE', defaultBasePath)
if self.args.android:
self.basePath = os.path.join(self.basePath, 'android')
if (not os.path.isdir(self.basePath)):