From ff97cbef07d9b83ed042bbf72c805040b92ec88d Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Tue, 23 Sep 2025 12:27:21 +0300 Subject: [PATCH] fix(ci): setup ruby --- .github/workflows/ci.yml | 12 ++++++++++++ .github/workflows/pages-build.yml | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e186ce..01698cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,11 @@ concurrency: permissions: read-all +env: + HOMEBREW_DEVELOPER: 1 + HOMEBREW_NO_AUTO_UPDATE: 1 + HOMEBREW_NO_ENV_HINTS: 1 + jobs: test-bot: strategy: @@ -26,6 +31,12 @@ jobs: actions: read steps: + - name: Setup Ruby + uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # v1.263.0 + with: + bundler-cache: true + ruby-version-file: .ruby-version + - name: Set up Homebrew id: set-up-homebrew uses: Homebrew/actions/setup-homebrew@main @@ -38,6 +49,7 @@ jobs: restore-keys: ${{ runner.os }}-rubygems- - name: Install Homebrew Bundler RubyGems + if: steps.cache.outputs.cache-hit != 'true' shell: bash run: brew install-bundler-gems diff --git a/.github/workflows/pages-build.yml b/.github/workflows/pages-build.yml index 9099fb8..f96928a 100644 --- a/.github/workflows/pages-build.yml +++ b/.github/workflows/pages-build.yml @@ -31,9 +31,10 @@ jobs: fetch-depth: 0 - name: Setup Ruby - uses: ruby/setup-ruby@cf7216d52fba1017929b4d7162fabe2b30af5b49 # v1.262.0 + uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # v1.263.0 with: bundler-cache: true + ruby-version-file: .ruby-version - name: Parse Formulae and Build Site shell: bash