Merge pull request #195126 from Homebrew/actions-full-versions #6301
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cache | |
on: | |
push: | |
paths: | |
- .github/workflows/cache.yml | |
schedule: | |
- cron: "0 */6 * * *" # every 6 hours | |
concurrency: | |
group: cache | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
update: | |
if: github.repository_owner == 'Homebrew' | |
strategy: | |
matrix: | |
runner: | |
- macos-13 | |
- macos-14 | |
- macos-15 | |
- ubuntu-latest | |
runs-on: ${{ matrix.runner }} | |
steps: | |
- name: Set up Homebrew | |
id: set-up-homebrew | |
uses: Homebrew/actions/setup-homebrew@master | |
with: | |
core: false | |
cask: false | |
test-bot: false | |
- name: Cache Homebrew Gems | |
id: cache | |
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 | |
with: | |
path: ${{ steps.set-up-homebrew.outputs.gems-path }} | |
key: ${{ matrix.runner }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }} | |
restore-keys: ${{ matrix.runner }}-rubygems- | |
- name: Install Homebrew Gems | |
id: gems | |
run: brew install-bundler-gems --groups=audit,style |