File tree Expand file tree Collapse file tree 2 files changed +5
-17
lines changed Expand file tree Collapse file tree 2 files changed +5
-17
lines changed Original file line number Diff line number Diff line change 23
23
- name : Build Test
24
24
run : |
25
25
make
26
- make -C lib/go protoc
27
- make -C lib/go protoc-gen-go
28
- make build_go
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ CSI_SPEC := spec.md
4
4
CSI_PROTO := csi.proto
5
5
# # Build go language bindings
6
6
CSI_A := csi.a
7
- CSI_GO := lib/go/csi/csi.pb.go
8
7
CSI_PKG := lib/go/csi
9
8
10
9
# This is the target for building the temporary CSI protobuf file.
31
30
diff "$@" "$?" > /dev/null 2>&1 || cp -f "$?" "$@"
32
31
endif
33
32
34
- build : check
35
-
36
- # If this is not running on GitHub Actions then for sake of convenience
37
- # go ahead and update the language bindings as well.
38
- ifneq (true,$(GITHUB_ACTIONS ) )
39
- build : build_cpp build_go
40
- endif
41
-
33
+ build : check build_cpp build_go
42
34
43
35
build_cpp :
44
36
$(MAKE ) -C lib/cxx
45
37
46
- # The file exists, but could be out-of-date.
47
- $(CSI_GO ) : $(CSI_PROTO )
48
- $(MAKE ) -C lib/go csi/csi.pb.go
38
+ csi_go :
39
+ $(MAKE ) -C lib/go
49
40
50
- $(CSI_A ) : $( CSI_GO )
41
+ $(CSI_A ) : csi_go
51
42
go mod download
52
43
go install ./$(CSI_PKG )
53
44
go build -o " $@ " ./$(CSI_PKG )
@@ -66,4 +57,4 @@ clobber: clean
66
57
check : $(CSI_PROTO )
67
58
awk ' { if (length > 72) print NR, $$0 }' $? | diff - /dev/null
68
59
69
- .PHONY : clean clobber check
60
+ .PHONY : clean clobber check csi_go build_go build_cpp
You can’t perform that action at this time.
0 commit comments