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