Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Intel pact builds #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .github/workflows/release-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ run-name: "Release homebrew pact ${{ inputs.release_sha }} from ${{ github.sha}}
on:
workflow_dispatch:
inputs:
pact_intel:
description: "url of latest pact release package for intel (legacy, not updated)"
type: string
required: false
pact_arm:
description: "url of latest pact release package for arm"
type: string
Expand All @@ -23,10 +19,6 @@ on:
required: false
workflow_call:
inputs:
pact_intel:
description: "url of latest pact release package for intel"
type: string
required: false
pact_arm:
description: "url of latest pact release package for arm"
type: string
Expand Down Expand Up @@ -74,7 +66,6 @@ jobs:
RELEASE_URL=""
HEAD_SEARCH=""
}
replace_in_rb on_intel "${{ inputs.pact_intel }}"
replace_in_rb on_arm "${{ inputs.pact_arm }}"
replace_in_rb on_arm "${{ inputs.pact_head }}" '\<head do\>\n[ ]*'

Expand Down
10 changes: 2 additions & 8 deletions pact.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ class Pact < Formula
depends_on "openssl@3"
depends_on "mpfr"

on_intel do
url "https://github.com/kadena-io/pact/releases/download/v4.11.0/pact-4.11.0-osx.tar.gz"
sha256 "8d3e194a13593cdf33dcd314cb0ca2452302106bfe238624f8e9761c9a4e1ca2"
end

on_arm do
url "https://github.com/kadena-io/pact-5/releases/download/5.0/pact-5.0-darwin-aarch64.tar.gz"
sha256 "8d4360b1b58946052bdea38551b104e73a105fcf1a41f815dbbcbed691a1c63a"
Expand All @@ -27,16 +22,15 @@ class Pact < Formula

def install
if Hardware::CPU.intel?
opoo "Warning: On intel machines, we fallback to the Pact 4.11 release."
odie "Error: Pact 5 is not supported on Intel Macs."
end

bin.install "pact"
end

def caveats
<<~EOS
The head version (Pact 5 development build) is currently only available for ARM-based Macs.
The Intel Macs will use the 4.11 Release.
Pact 5 is only available for ARM-based Macs.
EOS
end
test do
Expand Down
Loading