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 4040 - name : Test
4141 env :
4242 GOPATH : /home/runner/work/git2go
43- run : make test-static
43+ run : make TEST_ARGS=-test.v test-static
4444
4545 build-static :
4646 strategy :
6464 git submodule update --init
6565 make build-libgit2-static
6666 - name : Test
67- run : make test-static
67+ run : make TEST_ARGS=-test.v test-static
6868
6969 build-dynamic :
7070 strategy :
8686 git submodule update --init
8787 make build-libgit2-dynamic
8888 - name : Test
89- run : make test-dynamic
89+ run : make TEST_ARGS=-test.v test-dynamic
9090
9191 build-system-dynamic :
9292 strategy :
@@ -110,7 +110,7 @@ jobs:
110110 git submodule update --init
111111 sudo env BUILD_LIBGIT_REF=v${{ matrix.libgit2 }} ./script/build-libgit2.sh --dynamic --system
112112 - name : Test
113- run : make test
113+ run : make TEST_ARGS=-test.v test
114114
115115 build-system-static :
116116 strategy :
Original file line number Diff line number Diff line change 1+ TEST_ARGS ?= --count=1
2+
13default : test
24
35# System library
46# ==============
57# This uses whatever version of libgit2 can be found in the system.
68test :
79 go run script/check-MakeGitError-thread-lock.go
8- go test --count=1 ./...
10+ go test $( TEST_ARGS ) ./...
911
1012install :
1113 go install ./...
@@ -28,7 +30,7 @@ test-dynamic: dynamic-build/install/lib/libgit2.so
2830 go run script/check-MakeGitError-thread-lock.go
2931 PKG_CONFIG_PATH=dynamic-build/install/lib/pkgconfig \
3032 LD_LIBRARY_PATH=dynamic-build/install/lib \
31- go test --count=1 ./...
33+ go test $( TEST_ARGS ) ./...
3234
3335install-dynamic : dynamic-build/install/lib/libgit2.so
3436 PKG_CONFIG_PATH=dynamic-build/install/lib/pkgconfig \
@@ -47,7 +49,7 @@ static-build/install/lib/libgit2.a:
4749
4850test-static : static-build/install/lib/libgit2.a
4951 go run script/check-MakeGitError-thread-lock.go
50- go test --count=1 -- tags " static" ./...
52+ go test --tags " static" $( TEST_ARGS ) ./...
5153
5254install-static : static-build/install/lib/libgit2.a
5355 go install --tags " static" ./...
Original file line number Diff line number Diff line change @@ -71,4 +71,9 @@ cmake -DTHREADSAFE=ON \
7171 -DDEPRECATE_HARD=ON \
7272 " ${VENDORED_PATH} " &&
7373
74+ if which gmake nproc > /dev/null && [ -f Makefile ]; then
75+ # Make the build parallel if gmake is available and cmake used Makefiles.
76+ exec gmake " -j$( nproc --all) " install
77+ fi
78+
7479exec cmake --build . --target install
You can’t perform that action at this time.
0 commit comments