Skip to content

Commit

Permalink
Fix homebrew path
Browse files Browse the repository at this point in the history
Homebrew changed it's default install path from `/usr/local` to
`/opt/homebrew` a while back. Hardcoding the path is a bad idea, so
instead use `$(brew --prefix)` to get the prefix of the path for tools.

Also fix some [shellcheck](https://github.com/koalaman/shellcheck) issues.

Signed-off-by: Bryan Hundven <[email protected]>
  • Loading branch information
bhundven committed Mar 5, 2024
1 parent ace8d69 commit 6abe3bb
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,15 @@ jobs:
- name: "build ct-ng"
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
export PATH="$PATH:/usr/local/opt/binutils/bin"
export CPPFLAGS="-I/usr/local/opt/ncurses/include -I/usr/local/opt/gettext/include"
export LDFLAGS="-L/usr/local/opt/ncurses/lib -L/usr/local/opt/gettext/lib"
PATH="$PATH:$(brew --prefix)/opt/binutils/bin"
export PATH
CPPFLAGS="-I$(brew --prefix)/opt/ncurses/include -I$(brew --prefix)/opt/gettext/include"
export CPPFLAGS
LDFLAGS="-L$(brew --prefix)/opt/ncurses/lib -L$(brew --prefix)/opt/gettext/lib"
export LDFLAGS
fi
./bootstrap
./configure --prefix=$PWD/.local/
./configure --prefix="$PWD/.local/"
make
make install
tar -cf ct-ng.tar .local/
Expand Down

0 comments on commit 6abe3bb

Please sign in to comment.