File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 40
40
- name : Test
41
41
env :
42
42
GOPATH : /home/runner/work/git2go
43
- run : make test-static
43
+ run : make TEST_ARGS=-test.v test-static
44
44
45
45
build-static :
46
46
strategy :
64
64
git submodule update --init
65
65
make build-libgit2-static
66
66
- name : Test
67
- run : make test-static
67
+ run : make TEST_ARGS=-test.v test-static
68
68
69
69
build-dynamic :
70
70
strategy :
86
86
git submodule update --init
87
87
make build-libgit2-dynamic
88
88
- name : Test
89
- run : make test-dynamic
89
+ run : make TEST_ARGS=-test.v test-dynamic
90
90
91
91
build-system-dynamic :
92
92
strategy :
@@ -110,7 +110,7 @@ jobs:
110
110
git submodule update --init
111
111
sudo env BUILD_LIBGIT_REF=v${{ matrix.libgit2 }} ./script/build-libgit2.sh --dynamic --system
112
112
- name : Test
113
- run : make test
113
+ run : make TEST_ARGS=-test.v test
114
114
115
115
build-system-static :
116
116
strategy :
Original file line number Diff line number Diff line change
1
+ TEST_ARGS ?= --count=1
2
+
1
3
default : test
2
4
3
5
# System library
4
6
# ==============
5
7
# This uses whatever version of libgit2 can be found in the system.
6
8
test :
7
9
go run script/check-MakeGitError-thread-lock.go
8
- go test --count=1 ./...
10
+ go test $( TEST_ARGS ) ./...
9
11
10
12
install :
11
13
go install ./...
@@ -28,7 +30,7 @@ test-dynamic: dynamic-build/install/lib/libgit2.so
28
30
go run script/check-MakeGitError-thread-lock.go
29
31
PKG_CONFIG_PATH=dynamic-build/install/lib/pkgconfig \
30
32
LD_LIBRARY_PATH=dynamic-build/install/lib \
31
- go test --count=1 ./...
33
+ go test $( TEST_ARGS ) ./...
32
34
33
35
install-dynamic : dynamic-build/install/lib/libgit2.so
34
36
PKG_CONFIG_PATH=dynamic-build/install/lib/pkgconfig \
@@ -47,7 +49,7 @@ static-build/install/lib/libgit2.a:
47
49
48
50
test-static : static-build/install/lib/libgit2.a
49
51
go run script/check-MakeGitError-thread-lock.go
50
- go test --count=1 -- tags " static" ./...
52
+ go test --tags " static" $( TEST_ARGS ) ./...
51
53
52
54
install-static : static-build/install/lib/libgit2.a
53
55
go install --tags " static" ./...
Original file line number Diff line number Diff line change @@ -70,4 +70,9 @@ cmake -DTHREADSAFE=ON \
70
70
-DCMAKE_INSTALL_LIBDIR=" lib" \
71
71
" ${VENDORED_PATH} " &&
72
72
73
+ if which gmake nproc > /dev/null && [ -f Makefile ]; then
74
+ # Make the build parallel if gmake is available and cmake used Makefiles.
75
+ exec gmake " -j$( nproc --all) " install
76
+ fi
77
+
73
78
exec cmake --build . --target install
You can’t perform that action at this time.
0 commit comments