Declare forward-compatibility with libgit2 v1.2.0 #minor (#800) #801
|
@ -61,7 +61,10 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
libgit2: [ '1.0.0', '1.1.0' ]
|
libgit2:
|
||||||
|
- 'v1.0.0'
|
||||||
|
- 'v1.1.0'
|
||||||
|
- 'v1.2.0'
|
||||||
name: Go (system-wide, dynamic)
|
name: Go (system-wide, dynamic)
|
||||||
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
@ -78,7 +81,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
sudo apt-get install -y --no-install-recommends libssh2-1-dev
|
sudo apt-get install -y --no-install-recommends libssh2-1-dev
|
||||||
sudo env BUILD_LIBGIT_REF=v${{ matrix.libgit2 }} ./script/build-libgit2.sh --dynamic --system
|
sudo env BUILD_LIBGIT_REF=${{ matrix.libgit2 }} ./script/build-libgit2.sh --dynamic --system
|
||||||
- name: Test
|
- name: Test
|
||||||
run: make TEST_ARGS=-test.v test
|
run: make TEST_ARGS=-test.v test
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,8 @@ package git
|
||||||
#cgo CFLAGS: -DLIBGIT2_STATIC
|
#cgo CFLAGS: -DLIBGIT2_STATIC
|
||||||
#include <git2.h>
|
#include <git2.h>
|
||||||
|
|
||||||
#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 0 || LIBGIT2_VER_MINOR > 1
|
#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 0 || LIBGIT2_VER_MINOR > 2
|
||||||
# error "Invalid libgit2 version; this git2go supports libgit2 between v1.0.0 and v1.1.0".
|
# error "Invalid libgit2 version; this git2go supports libgit2 between v1.0.0 and v1.2.0".
|
||||||
#endif
|
#endif
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
|
@ -7,8 +7,8 @@ package git
|
||||||
#cgo CFLAGS: -DLIBGIT2_DYNAMIC
|
#cgo CFLAGS: -DLIBGIT2_DYNAMIC
|
||||||
#include <git2.h>
|
#include <git2.h>
|
||||||
|
|
||||||
#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 0 || LIBGIT2_VER_MINOR > 1
|
#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 0 || LIBGIT2_VER_MINOR > 2
|
||||||
# error "Invalid libgit2 version; this git2go supports libgit2 between v1.0.0 and v1.1.0".
|
# error "Invalid libgit2 version; this git2go supports libgit2 between v1.0.0 and v1.2.0".
|
||||||
#endif
|
#endif
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
|
@ -7,8 +7,8 @@ package git
|
||||||
#cgo CFLAGS: -DLIBGIT2_STATIC
|
#cgo CFLAGS: -DLIBGIT2_STATIC
|
||||||
#include <git2.h>
|
#include <git2.h>
|
||||||
|
|
||||||
#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 0 || LIBGIT2_VER_MINOR > 1
|
#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 0 || LIBGIT2_VER_MINOR > 2
|
||||||
# error "Invalid libgit2 version; this git2go supports libgit2 between v1.0.0 and v1.1.0".
|
# error "Invalid libgit2 version; this git2go supports libgit2 between v1.0.0 and v1.2.0".
|
||||||
#endif
|
#endif
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
Loading…
Reference in New Issue