Skip to content

Commit

Permalink
Merge pull request #145 from ddeclerck/fix_macos_ci
Browse files Browse the repository at this point in the history
Fix MacOS CI
  • Loading branch information
GitMensch authored May 14, 2024
2 parents 70b4076 + 4f76d0a commit 4907e0d
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,11 @@ jobs:

- name: Install packages
run: |
brew install automake help2man texinfo bison berkeley-db@4
opt="/usr/local/opt"; \
for d in automake help2man bison texinfo berkeley-db@4; do \
test -d "$opt/$d/bin" && echo "$opt/$d/bin" >> $GITHUB_PATH; \
test -d "$opt/$d/lib" && export LDFLAGS="-L$opt/$d/lib $LDFLAGS"; \
test -d "$opt/$d/include" && export CPPFLAGS="-I$opt/$d/include $CPPFLAGS"; \
done; \
echo "LDFLAGS=${LDFLAGS}" >> $GITHUB_ENV; \
echo "CPPFLAGS=${CPPFLAGS}" >> $GITHUB_ENV
brew install pkg-config automake libtool help2man texinfo bison berkeley-db@4 json-c
opt="/opt/homebrew/opt"
echo "$opt/pkg-config/bin" >> $GITHUB_PATH
echo "LDFLAGS=-L$opt/berkeley-db@4/lib ${LDFLAGS}" >> $GITHUB_ENV
echo "CPPFLAGS=-I$opt/berkeley-db@4/include ${CPPFLAGS}" >> $GITHUB_ENV
- name: Set git user
run: |
Expand Down Expand Up @@ -64,7 +60,7 @@ jobs:
with:
name: config.log
path: _build/config.log
# if: failure()
if: failure()

- name: make
run: |
Expand Down

0 comments on commit 4907e0d

Please sign in to comment.