Skip to content

Commit

Permalink
Multiple archs
Browse files Browse the repository at this point in the history
  • Loading branch information
oed committed Jun 29, 2024
1 parent 5b5c8a0 commit 42a1b1f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Formula/ceramic-one.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
class CeramicOne < Formula
desc "Implementation of the Ceramic protocol in Rust"

Check failure on line 2 in Formula/ceramic-one.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Layout/IndentationWidth: Use 2 (not 4) spaces for indentation.

Check failure on line 2 in Formula/ceramic-one.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

Layout/IndentationWidth: Use 2 (not 4) spaces for indentation.
homepage "https://ceramic.network"

Check failure on line 3 in Formula/ceramic-one.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Layout/IndentationWidth: Use 2 (not 4) spaces for indentation.

Check failure on line 3 in Formula/ceramic-one.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

Layout/IndentationWidth: Use 2 (not 4) spaces for indentation.
url "https://github.com/ceramicnetwork/rust-ceramic/releases/download/v0.25.0/ceramic-one_aarch64-apple-darwin_brew-test.tar.gz"
sha256 "5470e699784ec7a679937ad4a0c5f19c7559b025b680b0c7206c78c7e4e58df5"
# Conditional URL and SHA based on architecture
if Hardware::CPU.intel?

Check failure on line 5 in Formula/ceramic-one.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Layout/IndentationWidth: Use 2 (not 4) spaces for indentation.

Check failure on line 5 in Formula/ceramic-one.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

Layout/IndentationWidth: Use 2 (not 4) spaces for indentation.
url "https://github.com/ceramicnetwork/rust-ceramic/releases/download/v0.25.0/ceramic-one_x86_64-apple-darwin_brew-test.tar.gz"
sha256 "sha256_for_x86_64_version"

Check failure on line 7 in Formula/ceramic-one.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

FormulaAudit/Checksum: sha256 should be 64 characters

Check failure on line 7 in Formula/ceramic-one.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

FormulaAudit/Checksum: sha256 contains invalid characters

Check failure on line 7 in Formula/ceramic-one.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

FormulaAudit/Checksum: sha256 should be 64 characters

Check failure on line 7 in Formula/ceramic-one.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

FormulaAudit/Checksum: sha256 contains invalid characters
elsif Hardware::CPU.arm?
url "https://github.com/ceramicnetwork/rust-ceramic/releases/download/v0.25.0/ceramic-one_aarch64-apple-darwin_brew-test.tar.gz"
sha256 "5470e699784ec7a679937ad4a0c5f19c7559b025b680b0c7206c78c7e4e58df5"
end
version "0.25.0"

Check failure on line 12 in Formula/ceramic-one.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Layout/IndentationWidth: Use 2 (not 4) spaces for indentation.

Check failure on line 12 in Formula/ceramic-one.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

Layout/IndentationWidth: Use 2 (not 4) spaces for indentation.

Check failure on line 13 in Formula/ceramic-one.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Layout/TrailingWhitespace: Trailing whitespace detected.

Check failure on line 13 in Formula/ceramic-one.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

Layout/TrailingWhitespace: Trailing whitespace detected.
def install

Check failure on line 14 in Formula/ceramic-one.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Layout/IndentationWidth: Use 2 (not 4) spaces for indentation.

Check failure on line 14 in Formula/ceramic-one.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

Layout/IndentationWidth: Use 2 (not 4) spaces for indentation.
bin.install "ceramic-one"
end
end

Check failure on line 17 in Formula/ceramic-one.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Layout/EndAlignment: `end` at 17, 2 is not aligned with `class CeramicOne < Formula` at 1, 0.

Check failure on line 17 in Formula/ceramic-one.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

Layout/EndAlignment: `end` at 17, 2 is not aligned with `class CeramicOne < Formula` at 1, 0.

0 comments on commit 42a1b1f

Please sign in to comment.