├── README.md ├── Formula ├── asimov-module-cli.rb ├── asimov-snapshot-cli.rb └── asimov-cli.rb └── .github └── workflows ├── tests.yml └── publish.yml /README.md: -------------------------------------------------------------------------------- 1 | # Homebrew Tap for ASIMOV Platform 2 | 3 | This repository contains public Homebrew formulas for the 4 | [ASIMOV Platform]. 5 | 6 | ## Prerequisites 7 | 8 | - [Homebrew](https://brew.sh) 9 | 10 | ## Configuration 11 | 12 | Firstly, register this tap in your local Homebrew installation with: 13 | 14 | ```bash 15 | brew tap asimov-platform/tap 16 | ``` 17 | 18 | ## Installation 19 | 20 | ### Install [asimov-cli] 21 | 22 | ```bash 23 | brew install asimov-cli 24 | ``` 25 | 26 | ## Troubleshooting 27 | 28 | See [Homebrew's documentation](https://docs.brew.sh) in case of any trouble. 29 | 30 | [ASIMOV Platform]: https://github.com/asimov-platform 31 | [asimov-cli]: https://github.com/asimov-platform/asimov-cli 32 | -------------------------------------------------------------------------------- /Formula/asimov-module-cli.rb: -------------------------------------------------------------------------------- 1 | class AsimovModuleCli < Formula 2 | desc "To Be Filled" 3 | homepage "https://github.com/asimov-platform/asimov-module-cli" 4 | url "https://github.com/asimov-platform/asimov-module-cli/archive/refs/tags/25.0.3.tar.gz" 5 | sha256 "a74b83592c87310f648e5a542644fa6db99c5d8d47718be6d9f7fc2e165420c1" 6 | license "Unlicense" 7 | head "https://github.com/asimov-platform/asimov-module-cli.git", branch: "master" 8 | 9 | livecheck do 10 | url :stable 11 | strategy :github_latest 12 | end 13 | 14 | bottle do 15 | root_url "https://ghcr.io/v2/asimov-platform/tap" 16 | sha256 cellar: :any_skip_relocation, arm64_sequoia: "b914ea8ed0de1aa99bb727a6c69d01d8fc8ae726f34d19922c446733b4a7428c" 17 | sha256 cellar: :any_skip_relocation, sequoia: "13b496db983c3a9f728997a5dbdb012ded3e949ab1fdea62216bdf3bcc5a3dbf" 18 | sha256 cellar: :any_skip_relocation, x86_64_linux: "03d52d72ccfb70b262e78303db3daceb86e3bad1962274e02a3c638b88f71c32" 19 | end 20 | 21 | depends_on "rust" => :build 22 | 23 | def install 24 | system "cargo", "install", *std_cargo_args 25 | end 26 | 27 | test do 28 | assert true 29 | end 30 | end 31 | -------------------------------------------------------------------------------- /Formula/asimov-snapshot-cli.rb: -------------------------------------------------------------------------------- 1 | class AsimovSnapshotCli < Formula 2 | desc "To Be Filled" 3 | homepage "https://github.com/asimov-platform/asimov-snapshot-cli" 4 | url "https://github.com/asimov-platform/asimov-snapshot-cli/archive/refs/tags/25.0.0-dev.4.tar.gz" 5 | sha256 "e9b17ac680c2778580e1e9c45703250990da6b411da9c5c75b4a9be03fd2df5d" 6 | license "Unlicense" 7 | head "https://github.com/asimov-platform/asimov-snapshot-cli.git", branch: "master" 8 | 9 | livecheck do 10 | url :stable 11 | strategy :github_latest 12 | end 13 | 14 | bottle do 15 | root_url "https://ghcr.io/v2/asimov-platform/tap" 16 | sha256 cellar: :any_skip_relocation, arm64_sequoia: "19c9c25077d78419ca06e89f629e0636fd88097bbbba5861bc600b87552f69b9" 17 | sha256 cellar: :any_skip_relocation, sequoia: "1a9fdb31f94510187fb87121e39fbe1d065fe3d90b12933a7de2828c259c3ff6" 18 | sha256 cellar: :any_skip_relocation, x86_64_linux: "081a1837ec174155bd0ff7c11f502e4de62aacaf2960e79e939d33579bbe17db" 19 | end 20 | 21 | depends_on "rust" => :build 22 | 23 | def install 24 | system "cargo", "install", *std_cargo_args 25 | end 26 | 27 | test do 28 | assert true 29 | end 30 | end 31 | -------------------------------------------------------------------------------- /Formula/asimov-cli.rb: -------------------------------------------------------------------------------- 1 | class AsimovCli < Formula 2 | desc "To Be Filled" 3 | homepage "https://github.com/asimov-platform/asimov-cli" 4 | url "https://github.com/asimov-platform/asimov-cli/archive/refs/tags/25.0.2.tar.gz" 5 | sha256 "75c0edd16608aba7fab26ece4f398b0df4e74da94b4a8626be2556c214b42db0" 6 | license "Unlicense" 7 | head "https://github.com/asimov-platform/asimov-cli.git", branch: "master" 8 | 9 | livecheck do 10 | url :stable 11 | strategy :github_latest 12 | end 13 | 14 | bottle do 15 | root_url "https://ghcr.io/v2/asimov-platform/tap" 16 | sha256 cellar: :any_skip_relocation, arm64_sequoia: "3460cfa0b803e206b303fa5e73831233a9cf7514aff7a616943b6d1267e96d25" 17 | sha256 cellar: :any_skip_relocation, sequoia: "0beb92dc004c2355562e02be4f9854ffe740b134fca5e0fa98e694ad52dd6e6e" 18 | sha256 cellar: :any_skip_relocation, x86_64_linux: "941e58450a3b90471858b622e1a808f89fed0b31c3d73248943009cf1e715583" 19 | end 20 | 21 | depends_on "rust" => :build 22 | depends_on "asimov-module-cli" 23 | depends_on "asimov-snapshot-cli" 24 | 25 | def install 26 | system "cargo", "install", *std_cargo_args 27 | end 28 | 29 | test do 30 | assert true 31 | end 32 | end 33 | -------------------------------------------------------------------------------- /.github/workflows/tests.yml: -------------------------------------------------------------------------------- 1 | name: brew test-bot 2 | 3 | on: 4 | # push: 5 | # branches: 6 | # - master 7 | pull_request: 8 | 9 | jobs: 10 | test-bot: 11 | strategy: 12 | matrix: 13 | os: [ubuntu-22.04, macos-13, macos-15] 14 | runs-on: ${{ matrix.os }} 15 | steps: 16 | - name: Set up Homebrew 17 | id: set-up-homebrew 18 | uses: Homebrew/actions/setup-homebrew@master 19 | 20 | - name: Cache Homebrew Bundler RubyGems 21 | uses: actions/cache@v4 22 | with: 23 | path: ${{ steps.set-up-homebrew.outputs.gems-path }} 24 | key: ${{ matrix.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }} 25 | restore-keys: ${{ matrix.os }}-rubygems- 26 | 27 | - run: brew test-bot --only-cleanup-before 28 | 29 | - run: brew test-bot --only-setup 30 | 31 | - run: brew test-bot --only-tap-syntax 32 | 33 | - run: brew test-bot --only-formulae --root-url='https://ghcr.io/v2/asimov-platform/tap' 34 | if: github.event_name == 'pull_request' 35 | 36 | - name: Upload bottles as artifact 37 | if: always() && github.event_name == 'pull_request' 38 | uses: actions/upload-artifact@v4 39 | with: 40 | name: bottles_${{ matrix.os }} 41 | path: "*.bottle.*" 42 | -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- 1 | name: brew pr-pull 2 | 3 | on: 4 | pull_request_target: 5 | types: 6 | - labeled 7 | 8 | jobs: 9 | pr-pull: 10 | if: contains(github.event.pull_request.labels.*.name, 'pr-pull') 11 | runs-on: ubuntu-22.04 12 | permissions: 13 | contents: write 14 | packages: write 15 | pull-requests: write 16 | steps: 17 | - name: Set up Homebrew 18 | uses: Homebrew/actions/setup-homebrew@master 19 | 20 | - name: Set up git 21 | uses: Homebrew/actions/git-user-config@master 22 | 23 | - name: Pull bottles 24 | env: 25 | HOMEBREW_GITHUB_API_TOKEN: ${{ github.token }} 26 | HOMEBREW_GITHUB_PACKAGES_TOKEN: ${{ github.token }} 27 | HOMEBREW_GITHUB_PACKAGES_USER: ${{ github.repository_owner }} 28 | PULL_REQUEST: ${{ github.event.pull_request.number }} 29 | run: brew pr-pull --debug --tap="$GITHUB_REPOSITORY" "$PULL_REQUEST" 30 | 31 | - name: Push commits 32 | uses: Homebrew/actions/git-try-push@master 33 | with: 34 | token: ${{ github.token }} 35 | branch: master 36 | 37 | - name: Delete branch 38 | if: github.event.pull_request.head.repo.fork == false 39 | env: 40 | BRANCH: ${{ github.event.pull_request.head.ref }} 41 | run: git push --delete origin "$BRANCH" 42 | --------------------------------------------------------------------------------