Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Jan 10, 2025
1 parent 75f722c commit 8a473a3
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/build-bottle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ env:
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALL_FROM_API: 1
HOMEBREW_NO_BUILD_ERROR_ISSUES: 1
BOTTLE_ROOT_URL: https://ghcr.io/v2/rbenv/tap

defaults:
run:
Expand All @@ -23,8 +24,11 @@ jobs:
bottle:
strategy:
matrix:
os: [macos-12, macos-13, macos-14, macos-15]
formula: [[email protected], [email protected]]
os: [macos-13, macos-14, macos-15]

runs-on: ${{ matrix.os }}

steps:
- name: Set up Homebrew
id: set-up-homebrew
Expand All @@ -47,9 +51,22 @@ jobs:
run: brew install-bundler-gems

- name: Install formula
run: brew install --build-bottle rbenv/tap/[email protected]
run: brew install --build-bottle "$FORMULA_NAME"
env:
FORMULA_NAME: rbenv/tap/${{ matrix.formula }}

- name: Build bottle
run: brew bottle --json rbenv/tap/[email protected]
run: brew bottle --json "$FORMULA_NAME" --root-url "$BOTTLE_ROOT_URL" --keep-old
env:
FORMULA_NAME: rbenv/tap/${{ matrix.formula }}

- run: ls -l

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: bottle_${{ matrix.formula }}_${{ matrix.os }}
if-no-files-found: error
path:
- "*.bottle.*.tar.gz"
- "*.bottle.json"

0 comments on commit 8a473a3

Please sign in to comment.