Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MacOS CI #145

Merged
merged 1 commit into from
May 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading