File tree Expand file tree Collapse file tree 5 files changed +14
-9
lines changed Expand file tree Collapse file tree 5 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 6161 strategy :
6262 fail-fast : false
6363 matrix :
64- libgit2 : [ '1.1.0' ]
64+ libgit2 :
65+ - ' v1.1.0'
66+ - ' v1.2.0'
6567 name : Go (system-wide, dynamic)
6668
6769 runs-on : ubuntu-20.04
7880 run : |
7981 git submodule update --init
8082 sudo apt-get install -y --no-install-recommends libssh2-1-dev
81- sudo env BUILD_LIBGIT_REF=v ${{ matrix.libgit2 }} ./script/build-libgit2.sh --dynamic --system
83+ sudo env BUILD_LIBGIT_REF=${{ matrix.libgit2 }} ./script/build-libgit2.sh --dynamic --system
8284 - name : Test
8385 run : make TEST_ARGS=-test.v test
8486
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ package git
99#cgo CFLAGS: -DLIBGIT2_STATIC
1010#include <git2.h>
1111
12- #if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 1 || LIBGIT2_VER_MINOR > 1
13- # error "Invalid libgit2 version; this git2go supports libgit2 between v1.1.0 and v1.1 .0"
12+ #if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 1 || LIBGIT2_VER_MINOR > 2
13+ # error "Invalid libgit2 version; this git2go supports libgit2 between v1.1.0 and v1.2 .0"
1414#endif
1515*/
1616import "C"
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ package git
77#cgo CFLAGS: -DLIBGIT2_DYNAMIC
88#include <git2.h>
99
10- #if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 1 || LIBGIT2_VER_MINOR > 1
11- # error "Invalid libgit2 version; this git2go supports libgit2 between v1.1.0 and v1.1 .0"
10+ #if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 1 || LIBGIT2_VER_MINOR > 2
11+ # error "Invalid libgit2 version; this git2go supports libgit2 between v1.1.0 and v1.2 .0"
1212#endif
1313*/
1414import "C"
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ package git
77#cgo CFLAGS: -DLIBGIT2_STATIC
88#include <git2.h>
99
10- #if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 1 || LIBGIT2_VER_MINOR > 1
11- # error "Invalid libgit2 version; this git2go supports libgit2 between v1.1.0 and v1.1 .0"
10+ #if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 1 || LIBGIT2_VER_MINOR > 2
11+ # error "Invalid libgit2 version; this git2go supports libgit2 between v1.1.0 and v1.2 .0"
1212#endif
1313*/
1414import "C"
Original file line number Diff line number Diff line change @@ -51,8 +51,11 @@ if [ -n "${BUILD_LIBGIT_REF}" ]; then
5151 trap " git submodule update --init" EXIT
5252fi
5353
54+ BUILD_DEPRECATED_HARD=" ON"
5455if [ " ${BUILD_SYSTEM} " = " ON" ]; then
5556 BUILD_INSTALL_PREFIX=${SYSTEM_INSTALL_PREFIX-" /usr" }
57+ # Most system-wide installations won't intentionally omit deprecated symbols.
58+ BUILD_DEPRECATED_HARD=" OFF"
5659else
5760 BUILD_INSTALL_PREFIX=" ${BUILD_PATH} /install"
5861 mkdir -p " ${BUILD_PATH} /install/lib"
@@ -68,7 +71,7 @@ cmake -DTHREADSAFE=ON \
6871 -DCMAKE_BUILD_TYPE=" RelWithDebInfo" \
6972 -DCMAKE_INSTALL_PREFIX=" ${BUILD_INSTALL_PREFIX} " \
7073 -DCMAKE_INSTALL_LIBDIR=" lib" \
71- -DDEPRECATE_HARD=ON \
74+ -DDEPRECATE_HARD=" ${BUILD_DEPRECATE_HARD} " \
7275 " ${VENDORED_PATH} "
7376
7477if which make nproc > /dev/null && [ -f Makefile ]; then
You can’t perform that action at this time.
0 commit comments