mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Cache downloaded files
Cache downloaded external libraries/gems, which are expected not changed so frequently. Also sometimes downloading from zlib returns the current time as the date header in unexpected format, and checksums mismatch at that time.
This commit is contained in:
parent
60fc8dda64
commit
3f1dcd7fff
Notes:
git
2021-12-02 22:21:50 +09:00
Merged: https://github.com/ruby/ruby/pull/5201 Merged-By: nobu <nobu@ruby-lang.org>
10 changed files with 42 additions and 0 deletions
4
.github/workflows/baseruby.yml
vendored
4
.github/workflows/baseruby.yml
vendored
|
@ -33,6 +33,10 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: .downloaded-cache
|
||||
key: downloaded-cache
|
||||
- uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: ${{ matrix.ruby }}
|
||||
|
|
5
.github/workflows/bundled_gems.yml
vendored
5
.github/workflows/bundled_gems.yml
vendored
|
@ -38,6 +38,11 @@ jobs:
|
|||
sudo apt-get install --no-install-recommends -q -y build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev bison autoconf ruby
|
||||
if: ${{ steps.diff.outcome == 'failure' }}
|
||||
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: .downloaded-cache
|
||||
key: downloaded-cache
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
./autogen.sh
|
||||
|
|
4
.github/workflows/check_dependencies.yml
vendored
4
.github/workflows/check_dependencies.yml
vendored
|
@ -39,6 +39,10 @@ jobs:
|
|||
git config --global advice.detachedHead 0
|
||||
git config --global init.defaultBranch garbage
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: .downloaded-cache
|
||||
key: downloaded-cache
|
||||
- run: ./autogen.sh
|
||||
- name: Run configure
|
||||
run: ./configure -C --disable-install-doc --disable-rubygems --with-gcc 'optflags=-O0' 'debugflags=-save-temps=obj -g'
|
||||
|
|
5
.github/workflows/codeql-analysis.yml
vendored
5
.github/workflows/codeql-analysis.yml
vendored
|
@ -37,6 +37,11 @@ jobs:
|
|||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: .downloaded-cache
|
||||
key: downloaded-cache
|
||||
|
||||
- name: Remove an obsolete rubygems vendored file
|
||||
run: sudo rm /usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb
|
||||
|
||||
|
|
4
.github/workflows/compilers.yml
vendored
4
.github/workflows/compilers.yml
vendored
|
@ -200,6 +200,10 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
with:
|
||||
path: src
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: src/.downloaded-cache
|
||||
key: downloaded-cache
|
||||
- run: ./autogen.sh
|
||||
working-directory: src
|
||||
- name: Run configure
|
||||
|
|
4
.github/workflows/mingw.yml
vendored
4
.github/workflows/mingw.yml
vendored
|
@ -54,6 +54,10 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
with:
|
||||
path: src
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: src/.downloaded-cache
|
||||
key: downloaded-cache
|
||||
- name: Set up Ruby & MSYS2
|
||||
uses: MSP-Greg/ruby-setup-ruby@win-ucrt-1
|
||||
with:
|
||||
|
|
4
.github/workflows/mjit.yml
vendored
4
.github/workflows/mjit.yml
vendored
|
@ -42,6 +42,10 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
with:
|
||||
path: src
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: src/.downloaded-cache
|
||||
key: downloaded-cache
|
||||
- name: Fixed world writable dirs
|
||||
run: |
|
||||
chmod -v go-w $HOME $HOME/.config
|
||||
|
|
4
.github/workflows/ubuntu.yml
vendored
4
.github/workflows/ubuntu.yml
vendored
|
@ -66,6 +66,10 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
with:
|
||||
path: src
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: src/.downloaded-cache
|
||||
key: downloaded-cache
|
||||
- name: Fixed world writable dirs
|
||||
run: |
|
||||
chmod -v go-w $HOME $HOME/.config
|
||||
|
|
4
.github/workflows/windows.yml
vendored
4
.github/workflows/windows.yml
vendored
|
@ -80,6 +80,10 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
with:
|
||||
path: src
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: src/.downloaded-cache
|
||||
key: downloaded-cache
|
||||
- name: setup env
|
||||
# %TEMP% is inconsistent with %TMP% and test-all expects they are consistent.
|
||||
# https://github.com/actions/virtual-environments/issues/712#issuecomment-613004302
|
||||
|
|
4
.github/workflows/yjit-ubuntu.yml
vendored
4
.github/workflows/yjit-ubuntu.yml
vendored
|
@ -58,6 +58,10 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
with:
|
||||
path: src
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: src/.downloaded-cache
|
||||
key: downloaded-cache
|
||||
- name: Fixed world writable dirs
|
||||
run: |
|
||||
chmod -v go-w $HOME $HOME/.config
|
||||
|
|
Loading…
Add table
Reference in a new issue