From da69cb4ad06199c429debc9ff2a7bc77f0ce7883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Sat, 8 Aug 2026 08:36:39 -0600 Subject: [PATCH] Cache gems in CI --- .gitea/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 230486b..2fc0641 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -25,11 +25,20 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Restore bundle cache + uses: actions/cache@v4 + with: + path: vendor/bundle + key: ${{ runner.os }}-ruby-3.3.0-${{ hashFiles('Gemfile.lock') }} + restore-keys: | + ${{ runner.os }}-ruby-3.3.0- + - name: Install Ruby dependencies run: | bundle config unset deployment bundle config set cache_all 'true' bundle config set cache_path 'vendor/cache' + bundle config set path 'vendor/bundle' bundle config set with 'development test' bundle install --jobs=3 --retry=3