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

Update Homebrew installation build from source #1

Open
wants to merge 2 commits into
base: main
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
ref: "main"
- name: "Update version"
run: |
wget https://github.com/lunatic-solutions/lunatic/releases/download/v${{ github.event.inputs.version }}/lunatic-macos-universal.tar.gz
export SHA256=$(shasum -a 256 lunatic-macos-universal.tar.gz | cut -d ' ' -f 1)
wget https://github.com/lunatic-solutions/lunatic/archive/v${{ github.event.inputs.version }}.tar.gz
export SHA256=$(shasum -a 256 v${{ github.event.inputs.version }}.tar.gz | cut -d ' ' -f 1)
sed -i -E 's/[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+/${{ github.event.inputs.version }}/' Formula/lunatic.rb
sed -i -E 's/sha256 .+/sha256 "'$SHA256'"/' Formula/lunatic.rb
git config --global user.name "Github Action 'Update lunatic' workflow"
Expand Down
8 changes: 5 additions & 3 deletions Formula/lunatic.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
class Lunatic < Formula
desc "A universal runtime for fast, robust and scalable server-side applications."
homepage "https://lunatic.solutions"
url "https://github.com/lunatic-solutions/lunatic/releases/download/v0.13.2/lunatic-macos-universal.tar.gz"
sha256 "b88299a9ba9044c461810d1f1ce3bf98a49b4a5a2f5261ab0b3857cf62a1d310"
url "https://github.com/lunatic-solutions/lunatic/archive/v0.13.2.tar.gz"
sha256 "0b43d95935be9781ac24f53e095d53fdb34b7dbfe2ff67bb94cad28e4145f869"
version "0.13.2"
license any_of: ["MIT", "Apache-2.0"]

depends_on "rust" => :build

def install
bin.install "lunatic"
system "cargo", "install", *std_cargo_args
end
end