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

initial homestar formula #22

Closed
wants to merge 3 commits into from
Closed
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/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
test-bot:
strategy:
matrix:
os: [macos-latest]
os: [macos-latest, macos-latest-xlarge]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Homebrew
Expand All @@ -17,7 +17,7 @@ jobs:

- name: Cache Homebrew Bundler RubyGems
id: cache
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
Expand Down
32 changes: 32 additions & 0 deletions Formula/homestar.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
class Homestar < Formula
desc "IPVM reference implementation"
homepage "https://fission.codes/ipvm"
url "https://github.com/ipvm-wg/homestar/archive/33ca93b27a83e6dde28df4046dd5d5d71161cc8a.tar.gz"
version "0.1.0"
sha256 "5fb6f521698f19a0febd5195ed7ee56f457c8d38522902b52c5565a10eabfd15"
license "Apache-2.0"

head "https://github.com/ipvm-wg/homestar.git", branch: "main"

depends_on "rust" => :build
depends_on "ipfs"

def install
system "cargo", "install", *std_cargo_args(path: "homestar-runtime")

# sample config
(etc/"homestar").install "homestar-runtime/config/settings.toml" => "settings.toml"
end

# Run as a service
service do
run [opt_bin/"homestar", "start", "--config", etc/"homestar/settings.toml", "--db", var/"homestar.db"]
keep_alive true
log_path var/"log/homestar.log"
error_log_path var/"log/homestar_error.log"
end

test do
assert_match "homestar #{version}", shell_output("#{bin}/homestar --version")
end
end
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,21 @@ Homebrew tap formula for [@fission-codes](https://github.com/fission-codes) tool

## Installation

The Fission CLI is currently available via homebrew on macOS and Linux.
### Fission CLI

The Fission CLI is currently available via homebrew on macOS.

```sh
brew install fission-codes/fission/fission-cli
```

### Homestar

Homestar is the IPVM reference implementation.

```sh
brew install fission-codes/fission/homestar

# Optionally
brew services start fission-codes/fission/homestar
```