From 26c983c3a25cfb449e0e55d73871605c4d5667fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Thu, 15 Aug 2019 09:38:02 +0200 Subject: [PATCH 1/4] Setup CI via Actions --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..34eed3b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: git2go CI +on: + pull_request: + push: + branches: + - master + - v* + +jobs: + + build: + strategy: + fail-fast: false + matrix: + go: [ '1.9', '1.10', '1.11', '1.12' ] + name: Go ${{ matrix.go }} + + runs-on: ubuntu-18.04 + + steps: + - name: Set up Go + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go }} + id: go + - name: Check out code into the Go module directory + uses: actions/checkout@v1 + - name: Build + run: make test-static -- 2.45.2 From a5b3de11aec347d2431372afffd7bacb224d8ca3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Thu, 15 Aug 2019 09:42:58 +0200 Subject: [PATCH 2/4] submodule --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 34eed3b..ab7a9da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,4 +26,6 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v1 - name: Build - run: make test-static + run: | + git submodule update --init + make test-static -- 2.45.2 From b201c503ab5788b2ce5511fa75792127e27e254c Mon Sep 17 00:00:00 2001 From: lhchavez Date: Wed, 12 Feb 2020 17:07:17 -0800 Subject: [PATCH 3/4] Update .github/workflows/ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab7a9da..d058ec6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - go: [ '1.9', '1.10', '1.11', '1.12' ] + go: [ '1.9', '1.10', '1.11', '1.12' , '1.13'] name: Go ${{ matrix.go }} runs-on: ubuntu-18.04 -- 2.45.2 From 22d400832bced5456a0495111d6e9eea432bc5e6 Mon Sep 17 00:00:00 2001 From: lhchavez Date: Thu, 13 Feb 2020 02:52:50 +0000 Subject: [PATCH 4/4] Fix build for go 1.9 This change makes the #includes between credentials.go and remote.go consistent to avoid a build error in go 1.9. --- remote.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/remote.go b/remote.go index b4b1dd7..43ffd33 100644 --- a/remote.go +++ b/remote.go @@ -1,9 +1,11 @@ package git /* -#include #include +#include +#include + extern void _go_git_setup_callbacks(git_remote_callbacks *callbacks); */ -- 2.45.2