mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Try to use actions/cache on windows
This commit is contained in:
parent
b38b26c62d
commit
593f0b8853
Notes:
git
2019-11-12 12:05:36 +09:00
1 changed files with 13 additions and 0 deletions
13
.github/workflows/windows.yml
vendored
13
.github/workflows/windows.yml
vendored
|
@ -22,11 +22,24 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
if: "!contains(github.event.head_commit.message, '[ci skip]')"
|
if: "!contains(github.event.head_commit.message, '[ci skip]')"
|
||||||
steps:
|
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
|
- name: Install libraries with vcpkg
|
||||||
run: |
|
run: |
|
||||||
vcpkg --triplet x64-windows install readline zlib
|
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
|
- name: Install libraries with chocolatey
|
||||||
run: |
|
run: |
|
||||||
|
choco config get cacheLocation
|
||||||
choco install --no-progress openssl winflexbison3
|
choco install --no-progress openssl winflexbison3
|
||||||
# Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork.
|
# Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork.
|
||||||
- name: Checkout ruby/ruby
|
- name: Checkout ruby/ruby
|
||||||
|
|
Loading…
Add table
Reference in a new issue