install inkscape using same cache as OpenCppCoverage
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Thu, 7 Mar 2024 20:13:00 +0000 (21:13 +0100)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Wed, 10 Apr 2024 15:05:56 +0000 (17:05 +0200)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
.github/workflows/windows-build-and-test.yml

index 4e458ddfee225b9cb0a75b0cb05b79a800569081..7cc584f533e59ca60dcbf37700d073c6763c87e2 100644 (file)
@@ -32,7 +32,6 @@ jobs:
           craft --add-blueprint-repository [git]https://github.com/nextcloud/desktop-client-blueprints.git
           craft craft
           craft --install-deps nextcloud-client
-          choco install inkscape
           
       - name: Cache Install OpenCppCoverage
         id: cache-install-opencppcoverage
@@ -47,6 +46,19 @@ jobs:
         run: |
           choco install opencppcoverage
 
+      - name: Cache Install inkscape
+        id: cache-install-inkscape
+        uses: actions/cache@v4
+        with:
+          path: C:\Program Files\inkscape
+          key: ${{ runner.os }}-cache-install-inkscape
+
+      - name: Install inkscape
+        if: steps.cache-install-inkscape.outputs.cache-hit != 'true'
+        shell: pwsh
+        run: |
+          choco install inkscape
+
       - name: Setup PATH
         shell: pwsh
         run: |