aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorBryan Hundven <bryanhundven@gmail.com>2024-03-05 15:14:12 -0800
committerBryan Hundven <bryanhundven@gmail.com>2024-03-06 09:35:10 -0800
commit885748040b3120fabae19402b87bdc8eff5bf63e (patch)
treef2f643bdd47013ca6d6496aeb08d5e655414d569 /.github
parent2697728761b3b565e6997919d5c35f85218ba21e (diff)
downloadcrosstool-ng-885748040b3120fabae19402b87bdc8eff5bf63e.tar.gz
crosstool-ng-885748040b3120fabae19402b87bdc8eff5bf63e.tar.bz2
crosstool-ng-885748040b3120fabae19402b87bdc8eff5bf63e.zip
Fix homebrew path
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 <bryanhundven@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/continuous-integration-workflow.yml11
1 files changed, 7 insertions, 4 deletions
diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml
index 4dcac522..fed014f7 100644
--- a/.github/workflows/continuous-integration-workflow.yml
+++ b/.github/workflows/continuous-integration-workflow.yml
@@ -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/