ruby-changes:58736
From: Kazuhiro <ko1@a...>
Date: Tue, 12 Nov 2019 12:05:29 +0900 (JST)
Subject: [ruby-changes:58736] 593f0b8853 (master): Try to use actions/cache on windows
https://git.ruby-lang.org/ruby.git/commit/?id=593f0b8853 From 593f0b88533c9d327b33d098bb6b3b51df871966 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Tue, 12 Nov 2019 11:27:55 +0900 Subject: Try to use actions/cache on windows diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index f0e65d0..abb3620 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -22,11 +22,24 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/windows.yml#L22 runs-on: ${{ matrix.os }} if: "!contains(github.event.head_commit.message, '[ci skip]')" steps: + - uses: actions/cache@v1 + with: + path: C:\vcpkg\downloads + key: ${{ runner.os }}-vcpkg-download-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-vcpkg-download- - name: Install libraries with vcpkg run: | vcpkg --triplet x64-windows install readline zlib + - uses: actions/cache@v1 + with: + path: C:\Users\runneradmin\AppData\Local\Temp\chocolatey + key: ${{ runner.os }}-chocolatey-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-chocolatey- - name: Install libraries with chocolatey run: | + choco config get cacheLocation choco install --no-progress openssl winflexbison3 # Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork. - name: Checkout ruby/ruby -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/