Skip to content

Commit

Permalink
Fix MacOS CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeclerck committed May 13, 2024
1 parent 5ba97ae commit 3fe0a64
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 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
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2307,7 +2307,7 @@ case $host_os in
fi
#COB_FIX_LIB=""
;;
darwin* | rhapsody*)
rhapsody*)
if test "$COB_USES_GCC" = yes; then
COB_SHARED_OPT="-bundle -flat_namespace -undefined suppress"
fi
Expand Down

0 comments on commit 3fe0a64

Please sign in to comment.