Skip to content

Commit 75f722c

Browse files
committed
WIP bottle workflow
1 parent d56318a commit 75f722c

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/build-bottle.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Build Homebrew bottle
2+
3+
on:
4+
push:
5+
6+
env:
7+
HOMEBREW_DEVELOPER: 1
8+
HOMEBREW_GITHUB_ACTIONS: 1
9+
HOMEBREW_NO_AUTO_UPDATE: 1
10+
HOMEBREW_NO_INSTALL_FROM_API: 1
11+
HOMEBREW_NO_BUILD_ERROR_ISSUES: 1
12+
13+
defaults:
14+
run:
15+
shell: bash -xeuo pipefail {0}
16+
17+
# concurrency: bottle-${{ github.event.inputs.formula }}
18+
19+
permissions:
20+
contents: read
21+
22+
jobs:
23+
bottle:
24+
strategy:
25+
matrix:
26+
os: [macos-12, macos-13, macos-14, macos-15]
27+
runs-on: ${{ matrix.os }}
28+
steps:
29+
- name: Set up Homebrew
30+
id: set-up-homebrew
31+
uses: Homebrew/actions/setup-homebrew@master
32+
with:
33+
core: false
34+
cask: false
35+
test-bot: false
36+
37+
- name: Cache Homebrew Bundler RubyGems
38+
id: cache
39+
uses: actions/cache@v3
40+
with:
41+
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
42+
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
43+
restore-keys: ${{ runner.os }}-rubygems-
44+
45+
- name: Install Homebrew Bundler RubyGems
46+
if: steps.cache.outputs.cache-hit != 'true'
47+
run: brew install-bundler-gems
48+
49+
- name: Install formula
50+
run: brew install --build-bottle rbenv/tap/openssl@1.1
51+
52+
- name: Build bottle
53+
run: brew bottle --json rbenv/tap/openssl@1.1
54+
55+
- run: ls -l

0 commit comments

Comments
 (0)