github.com/triarius/goreleaser@v1.12.5/internal/pipe/brew/testdata/TestRunPipeForMultipleAmd64Versions/v3.rb.golden (about)

     1  # typed: false
     2  # frozen_string_literal: true
     3  
     4  # This file was generated by GoReleaser. DO NOT EDIT.
     5  class V3 < Formula
     6    desc "Run pipe test formula"
     7    homepage "https://github.com/goreleaser"
     8    version "1.0.1"
     9  
    10    on_macos do
    11      if Hardware::CPU.arm?
    12        url "https://dummyhost/download/v1.0.1/bin.tar.gz"
    13        sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    14  
    15        def install
    16          bin.install "foo"
    17        end
    18      end
    19    end
    20  
    21    on_linux do
    22      if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
    23        url "https://dummyhost/download/v1.0.1/arm64.tar.gz"
    24        sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    25  
    26        def install
    27          bin.install "foo"
    28        end
    29      end
    30      if Hardware::CPU.intel?
    31        url "https://dummyhost/download/v1.0.1/amd64v3.tar.gz"
    32        sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    33  
    34        def install
    35          bin.install "foo"
    36        end
    37      end
    38    end
    39  end