summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby McDonald <BobbyMcWho@users.noreply.github.com>2019-11-16 22:54:05 -0500
committerGitHub <noreply@github.com>2019-11-16 22:54:05 -0500
commit80a7b50f7e2a2a22debe79aa0dee17cfb6b6df3c (patch)
treef4cb549427f7aa742f11a365605b2218427d2190
parent9e18ff6d7c0c14c8662e38bf22e7f2c9e06773c9 (diff)
downloadhashie-80a7b50f7e2a2a22debe79aa0dee17cfb6b6df3c.tar.gz
Use ruby-build with cache
-rw-r--r--.github/workflows/test.yml10
1 files changed, 8 insertions, 2 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index b3a929a..3fe6c9b 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -12,10 +12,16 @@ jobs:
ruby-version: [ '2.1.x', '2.2.x', '2.3.x', '2.4.x', '2.5.x', '2.6.x']
steps:
- uses: actions/checkout@v1
- - name: Set up Ruby ${{ matrix.ruby-version }}
- uses: actions/setup-ruby@v1
+ - uses: actions/cache@preview
+ id: cache
+ with:
+ path: ~/local/rubies
+ key: ruby-${{ matrix.ruby-version }}
+ - uses: clupprich/ruby-build-action@master
+ id: ruby
with:
ruby-version: ${{ matrix.ruby-version }}
+ cache-available: ${{ steps.cache.outputs.cache-hit == 'true' }}
- name: Build and test with Rake
env:
CI: 'true'