From 9f2bfe5f326ee91f98e26fcd6cf44028e55ef1a2 Mon Sep 17 00:00:00 2001 From: lhchavez Date: Wed, 12 Feb 2020 18:58:58 -0800 Subject: [PATCH] Merge pull request #520 from libgit2/actions Setup CI via Actions (cherry picked from commit f21ecd9e74314585b26c08ddb6ea674d7b0bcca4) --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ remote.go | 3 ++- 2 files changed, 33 insertions(+), 1 deletion(-) 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..d058ec6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +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' , '1.13'] + 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: | + git submodule update --init + make test-static diff --git a/remote.go b/remote.go index b4b1dd7..6765e45 100644 --- a/remote.go +++ b/remote.go @@ -1,9 +1,10 @@ package git /* -#include #include +#include + extern void _go_git_setup_callbacks(git_remote_callbacks *callbacks); */