]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Cache chocolatey packages on Windows for cmake GitHub Actions workflow.
authorNathan Moinvaziri <nathan@nathanm.com>
Fri, 29 May 2020 18:16:43 +0000 (11:16 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sat, 30 May 2020 18:53:00 +0000 (20:53 +0200)
.github/workflows/cmake.yml

index 12a8f28d9e498dfddce380cf9185c538ddd9d6bd..2db3b953f96eb0b0269e6d12a1df690db9c23296 100644 (file)
@@ -341,6 +341,17 @@ jobs:
         sudo apt-get update
         sudo apt-get install -y ${{ matrix.packages }}
 
+    - name: Set environment variables (Windows)
+      run:  echo "::set-env name=temp::$($env:TEMP)"
+
+    - name: Cache packages (Windows)
+      uses: actions/cache@v2
+      if: runner.os == 'Windows'
+      with:
+        key: zlib-ng-win-choco-${{matrix.compiler}}
+        path: |
+          ${{env.temp}}\chocolatey\
+
     - name: Install packages (Windows)
       if: runner.os == 'Windows'
       run: |