Skip to content

Commit

Permalink
Update formula and GitHub workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
jdieg0 committed Sep 27, 2022
1 parent 51e474a commit 197459a
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 125 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
pr-pull:
if: contains(github.event.pull_request.labels.*.name, 'pr-pull')
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
Expand All @@ -17,6 +17,8 @@ jobs:
- name: Pull bottles
env:
HOMEBREW_GITHUB_API_TOKEN: ${{ github.token }}
HOMEBREW_GITHUB_PACKAGES_TOKEN: ${{ github.token }}
HOMEBREW_GITHUB_PACKAGES_USER: ${{ github.actor }}
PULL_REQUEST: ${{ github.event.pull_request.number }}
run: brew pr-pull --debug --tap=$GITHUB_REPOSITORY $PULL_REQUEST

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
test-bot:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-22.04, macos-12]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Homebrew
Expand Down
18 changes: 8 additions & 10 deletions Formula/morpheus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,21 @@ class Morpheus < Formula
desc "Modelling environment for multi-cellular systems biology"
homepage "https://morpheus.gitlab.io/"
url "https://gitlab.com/morpheus.lab/morpheus/-/archive/v2.3.0_1/morpheus-v2.3.0_1.tar.gz"
version "2.3.0"
revision 1
sha256 "af978a1918af10d47c5af60924ad5d3d5bad24d14406eb6f7baf05a758b3eb60"
license "BSD-3-Clause"

livecheck do
url :stable
regex(/^v?(\d+(?:\.\d+)+)$/i)
regex(/^v?(\d+(?:\.\d+)+(?:_?\d+)?)$/i)
end

# bottle do
# root_url "https://github.com/morpheus-lab/homebrew-morpheus/releases/download/morpheus-2.2.6"
# sha256 cellar: :any, arm64_monterey: "f895c1c4757d1af1a99a795a80313d548cac928cf74f6c637101f57286f27110"
# sha256 cellar: :any, monterey: "6e9961d869546b16d93976f6aff99393477d7cd783a10df716f872d7d96209dd"
# sha256 cellar: :any, catalina: "d3f22b183cbb91227991e0e94440b8af0eeb05f0a56e90c2092dbd7bc2a7f4a5"
# sha256 cellar: :any_skip_relocation, x86_64_linux: "3264fd1d6fc496ff6b76cbf51c46ccefd0eed5b76d75df6ca6b510258c23de88"
# end
# bottle do
# root_url "https://github.com/morpheus-lab/homebrew-morpheus/releases/download/morpheus-2.2.6"
# sha256 cellar: :any, arm64_monterey: "f895c1c4757d1af1a99a795a80313d548cac928cf74f6c637101f57286f27110"
# sha256 cellar: :any, monterey: "6e9961d869546b16d93976f6aff99393477d7cd783a10df716f872d7d96209dd"
# sha256 cellar: :any, catalina: "d3f22b183cbb91227991e0e94440b8af0eeb05f0a56e90c2092dbd7bc2a7f4a5"
# sha256 cellar: :any_skip_relocation, x86_64_linux: "3264fd1d6fc496ff6b76cbf51c46ccefd0eed5b76d75df6ca6b510258c23de88"
# end

depends_on "boost" => :build
depends_on "cmake" => :build
Expand Down
112 changes: 0 additions & 112 deletions Formula/[email protected]

This file was deleted.

14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,19 @@ When a pull request making changes to a formula (or formulae) becomes green (all

### Get GitHub Workflows

The latest available GitHub workflows created with brew tap-new can be found under [`Homebrew/brew/Library/Homebrew/dev-cmd/tap-new.rb`](https://github.com/Homebrew/brew/blob/master/Library/Homebrew/dev-cmd/tap-new.rb).
The latest available GitHub workflows created with the [`brew tap-new`](https://docs.brew.sh/Manpage#tap-new-options-userrepo) command can be found in the Homebrew project under [`Homebrew/brew/Library/Homebrew/dev-cmd/tap-new.rb`](https://github.com/Homebrew/brew/blob/master/Library/Homebrew/dev-cmd/tap-new.rb). The two required GitHub workflow files `publish.yml` and `tests.yml` are embedded in `tap-new.rb` and should from time to time be copied from there and updated in the Morpheus tap.

Or you simply create a new tap with e.g.

brew tap-new morpheus-lab/morpheus-tap-new

and this way generate two new YAML files which can be taken directly from the corresponding subfolder of the tap (in this example `/opt/homebrew/Library/Taps/morpheus-lab/homebrew-morpheus-tap-new`).

If the second method is used, delete the temporary tap with

brew untap morpheus-lab/homebrew-morpheus-tap-new

afterwards.

See also the [Homebrew-Core Maintainer Guide](https://github.com/Homebrew/brew/blob/master/docs/Homebrew-homebrew-core-Maintainer-Guide.md).

Expand Down

0 comments on commit 197459a

Please sign in to comment.