File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,10 @@ jobs:
40
40
with :
41
41
PATTERNS : |
42
42
**/**.proto
43
- - name : proto-gen
43
+ - name : proto-gen-ci
44
44
if : env.GIT_DIFF
45
45
run : |
46
- make proto-gen # proto-swagger-gen FIXME swagger-gen result is not reproducible in CI
46
+ make proto-genci # proto-swagger-gen FIXME swagger-gen result is not reproducible in CI
47
47
git checkout -- go.mod go.sum docs/api/proto-docs.md # FIXME doc gen not reproducible in CI
48
48
- name : check working directory is clean
49
49
uses : numtide/clean-git-action@main
Original file line number Diff line number Diff line change @@ -272,14 +272,19 @@ endif
272
272
HTTPS_GIT := https://github.com/crypto-org-chain/cronos.git
273
273
protoVer =0.14.0
274
274
protoImageName =ghcr.io/cosmos/proto-builder:$(protoVer )
275
- protoImage =$(DOCKER ) run --rm -v $(CURDIR ) :/workspace --workdir /workspace --user root $(protoImageName )
275
+ protoImageCi =$(DOCKER ) run --rm -v $(CURDIR ) :/workspace --workdir /workspace --user root $(protoImageName )
276
+ protoImage =$(DOCKER ) run --rm -v $(CURDIR ) :/workspace --workdir /workspace $(protoImageName )
276
277
277
278
# ------
278
279
# NOTE: If you are experiencing problems running these commands, try deleting
279
280
# the docker images and execute the desired command again.
280
281
#
281
282
proto-all : proto-format proto-lint proto-gen
282
283
284
+ proto-gen-ci :
285
+ @echo " Generating Protobuf files"
286
+ $(protoImageCi ) sh ./scripts/protocgen.sh
287
+
283
288
proto-gen :
284
289
@echo " Generating Protobuf files"
285
290
$(protoImage ) sh ./scripts/protocgen.sh
You can’t perform that action at this time.
0 commit comments