From ed8bfcf8eddb8426b16f0e86a96b062b5cd5a8c9 Mon Sep 17 00:00:00 2001 From: jaimergp Date: Tue, 12 Nov 2024 09:34:04 +0100 Subject: [PATCH] Fix pkgs cache on Windows (#5082) Co-authored-by: Jannis Leidel --- .github/workflows/tests.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f67d62732a..f24076c701 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -113,11 +113,13 @@ jobs: - name: Cache Conda uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 with: + # Use faster GNU tar for all runners + enableCrossOsArchive: true path: ~/conda_pkgs_dir key: cache-${{ env.HASH }} - name: Setup Miniconda - uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3.0.4 + uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0 with: condarc-file: .github/condarc run-post: false # skip post cleanup @@ -197,7 +199,7 @@ jobs: key: cache-${{ env.HASH }} - name: Setup Miniconda - uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3.0.4 + uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0 with: condarc-file: .github/condarc run-post: false # skip post cleanup @@ -273,14 +275,17 @@ jobs: - name: Cache Conda uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 with: - path: ~/conda_pkgs_dir + # Use faster GNU tar for all runners + enableCrossOsArchive: true + path: D:\conda_pkgs_dir key: cache-${{ env.HASH }} - name: Setup Miniconda - uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3.0.4 + uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0 with: condarc-file: .github\condarc run-post: false # skip post cleanup + pkgs-dirs: D:\conda_pkgs_dir - name: Choco Install run: choco install visualstudio2017-workload-vctools @@ -375,13 +380,15 @@ jobs: - name: Cache Conda uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 with: + # Use faster GNU tar for all runners + enableCrossOsArchive: true path: | ~/conda_pkgs_dir ~/macosx_sdks key: cache-${{ env.HASH }} - name: Setup Miniconda - uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3.0.4 + uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0 with: condarc-file: .github/condarc run-post: false # skip post cleanup