summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-08-04 15:42:19 +0200
committerROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-08-04 15:42:19 +0200
commit25c4f713ce91e100d7abfe4bbba9f5159e39e6e1 (patch)
tree9e7fe4ee8cac4eb306883c84f43eb2cacff7d796
parent592b268e4afee402afdead534217668f40cd23bb (diff)
try to cache vcpkg install
-rw-r--r--.github/workflows/pip-packaging-windows.yml14
1 files 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