33
33
with :
34
34
components : clippy
35
35
- uses : taiki-e/install-action@protoc
36
+ - name : Install Bazel
37
+ uses :
bazel-contrib/[email protected]
38
+ with :
39
+ # Avoid downloading Bazel every time.
40
+ bazelisk-cache : true
41
+ # Store build cache per workflow.
42
+ disk-cache : ${{ github.workflow }}
43
+ # Share repository cache between workflows.
44
+ repository-cache : true
45
+ module-root : ./compiler
46
+ - name : Build and protoc plugin and add to PATH
47
+ id : build_step
48
+ # This runs all commands within the compiler/ directory
49
+ working-directory : ./compiler
50
+ run : |
51
+ bazel build //src:protoc-gen-rust-grpc
52
+
53
+ # Add the output directory to the GitHub PATH for subsequent steps
54
+ echo "$(pwd)/bazel-bin/src" >> $GITHUB_PATH
36
55
- uses : Swatinem/rust-cache@v2
37
56
- run : cargo clippy --workspace --all-features --all-targets
38
57
55
74
- uses : taiki-e/install-action@cargo-hack
56
75
- uses : taiki-e/install-action@cargo-udeps
57
76
- uses : taiki-e/install-action@protoc
77
+ - name : Install Bazel
78
+ uses :
bazel-contrib/[email protected]
79
+ with :
80
+ # Avoid downloading Bazel every time.
81
+ bazelisk-cache : true
82
+ # Store build cache per workflow.
83
+ disk-cache : ${{ github.workflow }}
84
+ # Share repository cache between workflows.
85
+ repository-cache : true
86
+ module-root : ./compiler
87
+ - name : Build and protoc plugin and add to PATH
88
+ id : build_step
89
+ # This runs all commands within the compiler/ directory
90
+ working-directory : ./compiler
91
+ run : |
92
+ bazel build //src:protoc-gen-rust-grpc
93
+
94
+ # Add the output directory to the GitHub PATH for subsequent steps
95
+ echo "$(pwd)/bazel-bin/src" >> $GITHUB_PATH
58
96
- uses : Swatinem/rust-cache@v2
59
97
- run : cargo hack udeps --workspace --exclude-features=_tls-any,tls,tls-aws-lc,tls-ring --each-feature
60
98
- run : cargo udeps --package tonic --features tls-ring,transport
@@ -76,6 +114,25 @@ jobs:
76
114
- uses : hecrj/setup-rust-action@v2
77
115
- uses : taiki-e/install-action@cargo-hack
78
116
- uses : taiki-e/install-action@protoc
117
+ - name : Install Bazel
118
+ uses :
bazel-contrib/[email protected]
119
+ with :
120
+ # Avoid downloading Bazel every time.
121
+ bazelisk-cache : true
122
+ # Store build cache per workflow.
123
+ disk-cache : ${{ github.workflow }}
124
+ # Share repository cache between workflows.
125
+ repository-cache : true
126
+ module-root : ./compiler
127
+ - name : Build and protoc plugin and add to PATH
128
+ id : build_step
129
+ # This runs all commands within the compiler/ directory
130
+ working-directory : ./compiler
131
+ run : |
132
+ bazel build //src:protoc-gen-rust-grpc
133
+
134
+ # Add the output directory to the GitHub PATH for subsequent steps
135
+ echo "$(pwd)/bazel-bin/src" >> $GITHUB_PATH
79
136
- uses : Swatinem/rust-cache@v2
80
137
- name : Check features
81
138
run : cargo hack check --workspace --no-private --each-feature --no-dev-deps
@@ -115,6 +172,25 @@ jobs:
115
172
- uses : actions/checkout@v4
116
173
- uses : hecrj/setup-rust-action@v2
117
174
- uses : taiki-e/install-action@protoc
175
+ - name : Install Bazel
176
+ uses :
bazel-contrib/[email protected]
177
+ with :
178
+ # Avoid downloading Bazel every time.
179
+ bazelisk-cache : true
180
+ # Store build cache per workflow.
181
+ disk-cache : ${{ github.workflow }}
182
+ # Share repository cache between workflows.
183
+ repository-cache : true
184
+ module-root : ./compiler
185
+ - name : Build and protoc plugin and add to PATH
186
+ id : build_step
187
+ # This runs all commands within the compiler/ directory
188
+ working-directory : ./compiler
189
+ run : |
190
+ bazel build //src:protoc-gen-rust-grpc
191
+
192
+ # Add the output directory to the GitHub PATH for subsequent steps
193
+ echo "$(pwd)/bazel-bin/src" >> $GITHUB_PATH
118
194
- uses : taiki-e/install-action@cargo-hack
119
195
- uses : taiki-e/install-action@cargo-nextest
120
196
- uses : Swatinem/rust-cache@v2
@@ -151,7 +227,7 @@ jobs:
151
227
# Share repository cache between workflows.
152
228
repository-cache : true
153
229
module-root : ./compiler
154
- - name : Build and protoc plugin and dd to PATH
230
+ - name : Build and protoc plugin and add to PATH
155
231
id : build_step
156
232
# This runs all commands within the compiler/ directory
157
233
working-directory : ./compiler
0 commit comments