summaryrefslogtreecommitdiff
path: root/.cirrus.yml
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-06-14 17:52:49 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-06-14 17:52:49 +0900
commit37513490442322e82961bf6d06c1c86d55cb3830 (patch)
treed36eb77e46440724bf94745e38f7ea6c0a8afeb2 /.cirrus.yml
parent58b8e217e1b4bac7a0b49d8e503f26032273dadc (diff)
[Cirrus] Cache the bundled gems in advance
Diffstat (limited to '.cirrus.yml')
-rw-r--r--.cirrus.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index c9d0ee4b2e..3f8db845af 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -40,6 +40,15 @@ task:
# https://github.com/rubygems/rubygems/issues/4921
- echo "GNUMAKEFLAGS=-s -j$((1 + $CIRRUS_CPU))" >> "$CIRRUS_ENV"
- cat "$CIRRUS_ENV"
+ bundled_gems_cache:
+ folder: .downloaded-cache
+ fingerprint_script:
+ sed 's/ */ /g;s/ *#.*//;/^$/d;s/\([^ ]*\) \([^ ]*\)/\1-\2.gem/;s/ .*//' gems/bundled_gems
+ populate_script:
+ sudo apt-get install wget;
+ mkdir -p .downloaded-cache;
+ sed 's/ */ /g;s/ *#.*//;/^$/d;s/\([^ ]*\) \([^ ]*\)/\1-\2.gem/;s/ .*//' gems/bundled_gems |
+ wget -P .downloaded-cache -nd -B https://rubygems.org/downloads/ -i -
# Arm containers are executed in AWS's EKS, and it's not yet supporting IPv6
# See https://github.com/aws/containers-roadmap/issues/835
disable_ipv6_script: sudo ./tool/disable_ipv6.sh
@@ -96,6 +105,16 @@ yjit_task:
- echo "GNUMAKEFLAGS=-s -j$((1 + $CIRRUS_CPU))" >> "$CIRRUS_ENV"
- echo RUST_BACKTRACE=1 >> "$CIRRUS_ENV"
- cat "$CIRRUS_ENV"
+ bundled_gems_cache:
+ folder: .downloaded-cache
+ fingerprint_script:
+ sed -e 's/ */ /g;s/ *#.*//;/^$/d;s/\([^ ]*\) \([^ ]*\)/\1-\2.gem/;s/ .*//'
+ gems/bundled_gems
+ populate_script:
+ sudo apt-get install wget;
+ mkdir -p .downloaded-cache;
+ sed 's/ */ /g;s/ *#.*//;/^$/d;s/\([^ ]*\) \([^ ]*\)/\1-\2.gem/;s/ .*//' gems/bundled_gems |
+ wget -P .downloaded-cache -nd -B https://rubygems.org/downloads/ -i -
# Arm containers are executed in AWS's EKS, and it's not yet supporting IPv6
# See https://github.com/aws/containers-roadmap/issues/835
disable_ipv6_script: sudo ./tool/disable_ipv6.sh