Skip to content

Installing Homebrew on Linux #25163

Discussion options

You must be logged in to vote

@destinyb-realityi ,

According to the discussion with the appropriate engineers, the shell profile script ( .profile , .bashrc  or . bash_profile ) is only read for interactive login shells. more details, see here.

If you want to add  Homebrew to the PATH for all the subsequent steps in the same job, you can directly add Homebrew’s directory in  PATH  via the command " ::add-path::{path}", reference here:

echo "::add-path::/path/to/dir"

So the below workflow can work as expected:

jobs:
  test:
    name: Test
    runs-on: ubuntu-latest
    steps:
      - name: Installing Homebrew
        run: |
          /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants