Skip to content

Commit 28cbc37

Browse files
fix(release_homebrew): force build from source (#93)
1 parent a20fbc6 commit 28cbc37

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

actions/release_homebrew/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,7 @@ def install_formula(formula: str) -> bool:
877877
args_list=[
878878
'brew',
879879
'install',
880+
'--build-from-source',
880881
'--include-test',
881882
'--keep-tmp',
882883
'--verbose',

tests/release_homebrew/Formula/hello_world.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ class HelloWorld < Formula
44
url "https://github.com/LizardByte/actions.git"
55
version "0.0.1"
66

7+
bottle do
8+
root_url "https://ghcr.io/v2/lizardbyte/homebrew"
9+
rebuild 1
10+
sha256 arm64_tahoe: "0000000000000000000000000000000000000000000000000000000000000000"
11+
sha256 arm64_sequoia: "0000000000000000000000000000000000000000000000000000000000000000"
12+
sha256 arm64_sonoma: "0000000000000000000000000000000000000000000000000000000000000000"
13+
sha256 x86_64_linux: "0000000000000000000000000000000000000000000000000000000000000000"
14+
end
15+
716
def install
817
# create hello world sh file with echo command
918
(buildpath/"hello-world").write <<~EOS

0 commit comments

Comments
 (0)