Skip to content

Commit 9f2bfe5

Browse files
committed
Merge pull request #520 from libgit2/actions
Setup CI via Actions (cherry picked from commit f21ecd9)
1 parent 75b56d8 commit 9f2bfe5

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: git2go CI
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
- v*
8+
9+
jobs:
10+
11+
build:
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
go: [ '1.9', '1.10', '1.11', '1.12' , '1.13']
16+
name: Go ${{ matrix.go }}
17+
18+
runs-on: ubuntu-18.04
19+
20+
steps:
21+
- name: Set up Go
22+
uses: actions/setup-go@v1
23+
with:
24+
go-version: ${{ matrix.go }}
25+
id: go
26+
- name: Check out code into the Go module directory
27+
uses: actions/checkout@v1
28+
- name: Build
29+
run: |
30+
git submodule update --init
31+
make test-static

remote.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package git
22

33
/*
4-
#include <git2.h>
54
#include <string.h>
65
6+
#include <git2.h>
7+
78
extern void _go_git_setup_callbacks(git_remote_callbacks *callbacks);
89
910
*/

0 commit comments

Comments
 (0)