File tree Expand file tree Collapse file tree 2 files changed +28
-8
lines changed Expand file tree Collapse file tree 2 files changed +28
-8
lines changed Original file line number Diff line number Diff line change 6
6
runs :
7
7
using : ' composite'
8
8
steps :
9
- - name : Cache OpenSSL library
10
- id : cache-openssl
11
- uses : actions/cache@v4
9
+ - name : Restore cached OpenSSL library
10
+ id : cache-openssl-restore
11
+ uses : actions/cache/restore @v4
12
12
with :
13
13
path : ~/openssl
14
14
key : openssl-${{ inputs.version }}
43
43
echo "Don't know how to build OpenSSL ${{ inputs.version }}"
44
44
;;
45
45
esac
46
+
47
+ - name : Save OpenSSL library cache
48
+ id : cache-openssl-save
49
+ uses : actions/cache/save@v4
50
+ with :
51
+ path : ~/openssl
52
+ key : ${{ steps.cache-openssl-restore.outputs.cache-primary-key }}
Original file line number Diff line number Diff line change 9
9
runs :
10
10
using : ' composite'
11
11
steps :
12
- - name : Cache Ruby
13
- id : ruby-cache
14
- uses : actions/cache@v4
12
+ - name : Restore cached Ruby installation
13
+ id : cache- ruby-restore
14
+ uses : actions/cache/restore @v4
15
15
with :
16
16
path : ~/rubies/ruby-${{ inputs.version }}
17
17
key : ruby-${{ inputs.version }}-${{ inputs.openssl-version }}
48
48
echo "Don't know how to install Bundler for Ruby ${{ inputs.version }}"
49
49
;;
50
50
esac
51
+ - name : Save Ruby installation cache
52
+ id : cache-ruby-save
53
+ uses : actions/cache/save@v4
54
+ with :
55
+ path : ~/rubies/ruby-${{ inputs.version }}
56
+ key : ${{ steps.cache-ruby-restore.outputs.cache-primary-key }}
51
57
- name : Cache Bundler Install
52
- id : bundler-cache
53
- uses : actions/cache@v4
58
+ id : cache- bundler-restore
59
+ uses : actions/cache/restore @v4
54
60
env :
55
61
GEMFILE : ${{ env.BUNDLE_GEMFILE || 'Gemfile' }}
56
62
with :
62
68
run : |
63
69
bundle config set --local path ../vendor/bundle
64
70
bundle install
71
+
72
+ - name : Save Bundler Install cache
73
+ id : cache-bundler-save
74
+ uses : actions/cache/save@v4
75
+ with :
76
+ path : ./vendor/bundle
77
+ key : ${{ steps.cache-bundler-restore.outputs.cache-primary-key }}
You can’t perform that action at this time.
0 commit comments