Skip vcpkg setup if the cache exists already.

This commit is contained in:
Pentarctagon 2022-07-02 14:49:33 -05:00 committed by Pentarctagon
parent a573e58007
commit 3a796974c3

View file

@ -232,10 +232,10 @@ jobs:
- name: Build vcpkg
shell: cmd
run: |
git clone https://github.com/microsoft/vcpkg.git D:/a/wesnoth/vcpkg
cd D:/a/wesnoth/vcpkg
git checkout b49b2bdf22559c89eddbf29a29621a1dc6929320
D:/a/wesnoth/vcpkg/bootstrap-vcpkg.bat
if not exist "D:/a/wesnoth/vcpkg" git clone https://github.com/microsoft/vcpkg.git D:/a/wesnoth/vcpkg
if not exist "D:/a/wesnoth/vcpkg" cd D:/a/wesnoth/vcpkg
if not exist "D:/a/wesnoth/vcpkg" git checkout b49b2bdf22559c89eddbf29a29621a1dc6929320
if not exist "D:/a/wesnoth/vcpkg" D:/a/wesnoth/vcpkg/bootstrap-vcpkg.bat
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.9
@ -285,10 +285,10 @@ jobs:
- name: Build vcpkg
shell: cmd
run: |
git clone https://github.com/microsoft/vcpkg.git D:/a/wesnoth/vcpkg
cd D:/a/wesnoth/vcpkg
git checkout b49b2bdf22559c89eddbf29a29621a1dc6929320
D:/a/wesnoth/vcpkg/bootstrap-vcpkg.bat
if not exist "D:/a/wesnoth/vcpkg" git clone https://github.com/microsoft/vcpkg.git D:/a/wesnoth/vcpkg
if not exist "D:/a/wesnoth/vcpkg" cd D:/a/wesnoth/vcpkg
if not exist "D:/a/wesnoth/vcpkg" git checkout b49b2bdf22559c89eddbf29a29621a1dc6929320
if not exist "D:/a/wesnoth/vcpkg" D:/a/wesnoth/vcpkg/bootstrap-vcpkg.bat
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.9