From e8d797621f4228d9b76763cf20a3a3746f405123 Mon Sep 17 00:00:00 2001 From: Tom Petr Date: Sat, 3 Feb 2024 16:57:09 -0500 Subject: [PATCH] more --- .github/workflows/build-test-windows-x86.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-test-windows-x86.yml b/.github/workflows/build-test-windows-x86.yml index 53ab81337bb6..16c0c46b8380 100644 --- a/.github/workflows/build-test-windows-x86.yml +++ b/.github/workflows/build-test-windows-x86.yml @@ -14,14 +14,25 @@ jobs: with: path: | c:\opam - _opam opam.exe key: ${{ runner.os }}-opam3 + restore-keys: | + ${{ runner.os }}-opam - run: | Invoke-WebRequest "https://github.com/ocaml/opam/releases/download/2.2.0-beta1/opam-2.2.0-beta1-x86_64-preview-for-windows.exe" -OutFile opam.exe .\opam.exe init --bare --disable-sandboxing - .\opam.exe switch create . "ocaml-variants.4.14.0+mingw64c" --repos "default,mingw=https://github.com/fdopen/opam-repository-mingw.git#opam2" if: steps.cache-opam.outputs.cache-hit != 'true' + - id: cache-opam-switch + uses: actions/cache@v4 + with: + path: | + _opam + key: ${{ runner.os }}-switch-foo + restore-keys: | + ${{ runner.os }}-switch + - run: | + .\opam.exe switch create . "ocaml-variants.4.14.0+mingw64c" --repos "default,mingw=git+https://github.com/fdopen/opam-repository-mingw.git#opam2" + if: steps.cache-opam-switch.outputs.cache-hit != 'true' # - id: cache-opam-switch # uses: actions/cache@v4 # with: