Skip to content

Commit 8a473a3

Browse files
committed
WIP
1 parent 75f722c commit 8a473a3

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/build-bottle.yml

+20-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ env:
99
HOMEBREW_NO_AUTO_UPDATE: 1
1010
HOMEBREW_NO_INSTALL_FROM_API: 1
1111
HOMEBREW_NO_BUILD_ERROR_ISSUES: 1
12+
BOTTLE_ROOT_URL: https://ghcr.io/v2/rbenv/tap
1213

1314
defaults:
1415
run:
@@ -23,8 +24,11 @@ jobs:
2324
bottle:
2425
strategy:
2526
matrix:
26-
os: [macos-12, macos-13, macos-14, macos-15]
27+
28+
os: [macos-13, macos-14, macos-15]
29+
2730
runs-on: ${{ matrix.os }}
31+
2832
steps:
2933
- name: Set up Homebrew
3034
id: set-up-homebrew
@@ -47,9 +51,22 @@ jobs:
4751
run: brew install-bundler-gems
4852

4953
- name: Install formula
50-
run: brew install --build-bottle rbenv/tap/[email protected]
54+
run: brew install --build-bottle "$FORMULA_NAME"
55+
env:
56+
FORMULA_NAME: rbenv/tap/${{ matrix.formula }}
5157

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

5563
- run: ls -l
64+
65+
- name: Upload artifacts
66+
uses: actions/upload-artifact@v4
67+
with:
68+
name: bottle_${{ matrix.formula }}_${{ matrix.os }}
69+
if-no-files-found: error
70+
path:
71+
- "*.bottle.*.tar.gz"
72+
- "*.bottle.json"

0 commit comments

Comments
 (0)