diff --git a/.github/workflows/mint-ci.yml b/.github/workflows/mint-ci.yml index 0d2158b..f456cf5 100644 --- a/.github/workflows/mint-ci.yml +++ b/.github/workflows/mint-ci.yml @@ -15,9 +15,6 @@ jobs: - name: mint version: "0.1.1" os: macos-14 # arm - - name: mint - version: "0.1.1" - os: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -30,3 +27,21 @@ jobs: - name: Ensure the integrity was verified run: '! grep "Cannot verify integrity of" install-output.txt' + + test_mint_linux: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - name: mint + version: "0.1.1" + steps: + - name: Install homebrew + uses: Homebrew/actions/setup-homebrew@5caa94335a28d8fdf5a478ae8586f2da40a0a989 + - name: Install mint + run: | + set -o pipefail + ! command -v abq + brew install rwx-research/tap/${{ matrix.name }} + mint --version | grep ${{ matrix.version }} diff --git a/Formula/mint.rb b/Formula/mint.rb index 2daa096..9b7a649 100644 --- a/Formula/mint.rb +++ b/Formula/mint.rb @@ -3,14 +3,19 @@ class Mint < Formula homepage "https://www.rwx.com/mint" version "0.1.1" - if OS.mac? && Hardware::CPU.intel? - url "https://github.com/rwx-research/mint-cli/releases/download/v#{version}/mint-darwin-x86_64", user_agent: :fake - sha256 "8c13b18ebad7b2afa7490ea2aabb3c2a21a5090891d56f01543a9fd905f9ddae" - end - - if OS.mac? && Hardware::CPU.arm? - url "https://github.com/rwx-research/mint-cli/releases/download/v#{version}/mint-darwin-aarch64", user_agent: :fake - sha256 "3f3f6617ac327ceeef41cb0c3a1e65e7880c7210d9bcd00b2fc2c4948f4de6ab" + if OS.mac? + if Hardware::CPU.intel? + url "https://github.com/rwx-research/mint-cli/releases/download/v#{version}/mint-darwin-x86_64", user_agent: :fake + sha256 "8c13b18ebad7b2afa7490ea2aabb3c2a21a5090891d56f01543a9fd905f9ddae" + elsif Hardware::CPU.arm? + url "https://github.com/rwx-research/mint-cli/releases/download/v#{version}/mint-darwin-aarch64", user_agent: :fake + sha256 "3f3f6617ac327ceeef41cb0c3a1e65e7880c7210d9bcd00b2fc2c4948f4de6ab" + end + else + if Hardware::CPU.intel? + url "https://github.com/rwx-research/mint-cli/releases/download/v#{version}/mint-linux-x86_64", user_agent: :fake + sha256 "88f46ba7b54d914b63968be346fc0f1002429749683c651f9bc256775aac40df" + end end def install