From 25c4f713ce91e100d7abfe4bbba9f5159e39e6e1 Mon Sep 17 00:00:00 2001 From: ROUVREAU Vincent Date: Tue, 4 Aug 2020 15:42:19 +0200 Subject: try to cache vcpkg install --- .github/workflows/pip-packaging-windows.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pip-packaging-windows.yml b/.github/workflows/pip-packaging-windows.yml index 9bc0b28f..268e7ac4 100644 --- a/.github/workflows/pip-packaging-windows.yml +++ b/.github/workflows/pip-packaging-windows.yml @@ -23,21 +23,29 @@ jobs: - uses: actions/checkout@v1 with: submodules: true + # Restore from cache the previously built ports. If cache-miss, download, build vcpkg. + - name: Restore from cache and install vcpkg + # Download and build vcpkg, without installing any port. If content is cached already, it is a no-op. + uses: lukka/run-vcpkg@v3 + with: + setupOnly: true + # Now that vcpkg is installed, it is being used to run desired arguments. + - run: | + $VCPKG_ROOT/vcpkg @$vcpkgResponseFile + $VCPKG_ROOT/vcpkg install boost-graph boost-serialization boost-date-time boost-system boost-filesystem boost-test boost-thread boost-program-options eigen3 mpfr mpir cgal --triplet x64-windows + shell: bash - uses: actions/setup-python@v1 with: python-version: ${{ matrix.python-version }} architecture: x64 - name: Install dependencies run: | - vcpkg install boost-graph boost-serialization boost-date-time boost-system boost-filesystem boost-test boost-thread boost-program-options eigen3 mpfr mpir cgal --triplet x64-windows - vcpkg list python -m pip install --user -r .github/build-requirements.txt python -m pip install --user twine python -m pip list - name: Build python wheel run: | python --version - vcpkg list python -m pip list mkdir build cd build -- cgit v1.2.3