From: Nathan Moinvaziri Date: Fri, 29 May 2020 18:16:43 +0000 (-0700) Subject: Cache chocolatey packages on Windows for cmake GitHub Actions workflow. X-Git-Tag: 1.9.9-b1~280 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0de5acd39813eaa07a94c6ef3afdb78c8d33ac4;p=thirdparty%2Fzlib-ng.git Cache chocolatey packages on Windows for cmake GitHub Actions workflow. --- diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 12a8f28d9..2db3b953f 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -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: |