Skip to content

Commit

Permalink
Add mint for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-manges committed Feb 27, 2024
1 parent ebe7540 commit 83e26e0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 11 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/mint-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 }}
21 changes: 13 additions & 8 deletions Formula/mint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83e26e0

Please sign in to comment.