From 245841f2c6eb68fcbf81a383a88e79103d93fb62 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Sat, 25 Mar 2023 12:33:53 -0300 Subject: [PATCH] Debugging macos action. --- .github/workflows/macos.yml | 6 ++---- mac/ci-build.sh | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 mac/ci-build.sh diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 86f55d8..2905fa0 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -21,7 +21,5 @@ jobs: brew install automake binutils coreutils curl gettext libtool openssl pkgconfig brew upgrade - name: build - run: | - ./autogen.sh - make all - + run: ./mac/ci-build.sh + diff --git a/mac/ci-build.sh b/mac/ci-build.sh new file mode 100644 index 0000000..e6372c6 --- /dev/null +++ b/mac/ci-build.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +export LIBCURL_LIBS="-L/usr/local/opt/curl/lib" +export LIBCURL_CFLAGS="-I/usr/local/opt/curl/include" + +echo "------------------ CURL" +brew --prefix curl + +echo "------------------ OpenSSL " +brew --prefix openssl + +./autogen.sh +if [ "$?" != "0" ]; then + exit -1 +fi + +make all +./autogen.sh +if [ "$?" != "0" ]; then + exit -1 +fi + +echo "Build complete" + -- libgit2 0.21.2