Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jasonkarns/setup-homebrew
Set up Homebrew and (optionally) taps
https://github.com/jasonkarns/setup-homebrew
Last synced: 11 days ago
JSON representation
Set up Homebrew and (optionally) taps
- Host: GitHub
- URL: https://github.com/jasonkarns/setup-homebrew
- Owner: jasonkarns
- License: mit
- Created: 2020-04-05T01:19:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T16:44:03.000Z (almost 2 years ago)
- Last Synced: 2024-10-14T12:34:16.562Z (25 days ago)
- Language: JavaScript
- Homepage:
- Size: 773 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# setup-homebrew action
[![Test Status](https://img.shields.io/github/workflow/status/jasonkarns/setup-homebrew/Test?label=tests&logo=github)](https://github.com/jasonkarns/setup-homebrew/actions?query=workflow%3ATest)
This action sets up homebrew for use in actions by:
- cloning homebrew
- adding homebrew's bin to PATH
- cloning specified homebrew taps (core tap by default)Homebrew is already available out of the box on GitHub's macOS runners, so this action is primarily useful for jobs that will run within a build matrix supporting both macOS and Ubuntu. (This action does not support Windows runners.)
setup-homebrew will now leverage the "built-in" version of homebrew on macOS runners unless a `brew-version` is explicitly requested. This is an optimization to avoid cloning a second copy of homebrew when it's already available. However, if you need to ensure homebrew is absolutely at the latest edge version, you may want to run `brew update-reset` after this action completes.
## Usage
Refer to [action.yml](action.yml)
### Minimal Example
```yaml
- uses: jasonkarns/setup-homebrew
- run: brew --version # brew is available!
```### Specific taps
```yaml
- uses: jasonkarns/setup-homebrew
with:
taps: core, nodenv/nodenv
- run: brew tap # outputs homebrew/core and nodenv/nodenv
```