Skip to content

Commit

Permalink
WIP bottle workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Jan 10, 2025
1 parent d56318a commit 75f722c
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/build-bottle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build Homebrew bottle

on:
push:

env:
HOMEBREW_DEVELOPER: 1
HOMEBREW_GITHUB_ACTIONS: 1
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALL_FROM_API: 1
HOMEBREW_NO_BUILD_ERROR_ISSUES: 1

defaults:
run:
shell: bash -xeuo pipefail {0}

# concurrency: bottle-${{ github.event.inputs.formula }}

permissions:
contents: read

jobs:
bottle:
strategy:
matrix:
os: [macos-12, macos-13, macos-14, macos-15]
runs-on: ${{ matrix.os }}
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 Bundler RubyGems
id: cache
uses: actions/cache@v3
with:
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
restore-keys: ${{ runner.os }}-rubygems-

- name: Install Homebrew Bundler RubyGems
if: steps.cache.outputs.cache-hit != 'true'
run: brew install-bundler-gems

- name: Install formula
run: brew install --build-bottle rbenv/tap/[email protected]

- name: Build bottle
run: brew bottle --json rbenv/tap/[email protected]

- run: ls -l

0 comments on commit 75f722c

Please sign in to comment.