|
11 | 11 | "name": "Installing Bazel",
|
12 | 12 | "run": "v=$(cat .bazelversion) && curl -L https://github.com/bazelbuild/bazel/releases/download/${v}/bazel-${v}-linux-x86_64 > ~/bazel && chmod +x ~/bazel && echo ~ >> ${GITHUB_PATH}"
|
13 | 13 | },
|
| 14 | + { |
| 15 | + "name": "Bazel mod tidy", |
| 16 | + "run": "bazel mod tidy" |
| 17 | + }, |
14 | 18 | {
|
15 | 19 | "name": "Gazelle",
|
16 |
| - "run": "bazel run //:gazelle -- update-repos -from_file=go.mod -to_macro go_dependencies.bzl%go_dependencies -prune && bazel run //:gazelle" |
| 20 | + "run": "rm $(find . -name '*.pb.go' | sed -e 's/[^/]*$/BUILD.bazel/') && bazel run //:gazelle" |
17 | 21 | },
|
18 | 22 | {
|
19 | 23 | "name": "Buildifier",
|
20 |
| - "run": "sed '/^$/d' go_dependencies.bzl > go_dependencies.bzl.new && mv go_dependencies.bzl.new go_dependencies.bzl && bazel run @com_github_bazelbuild_buildtools//:buildifier" |
| 24 | + "run": "bazel run @com_github_bazelbuild_buildtools//:buildifier" |
21 | 25 | },
|
22 | 26 | {
|
23 | 27 | "name": "Gofmt",
|
|
49 | 53 | },
|
50 | 54 | {
|
51 | 55 | "name": "linux_amd64: build and test",
|
52 |
| - "run": "bazel test --test_output=errors --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 //..." |
| 56 | + "run": "bazel test --test_output=errors --platforms=@rules_go//go/toolchain:linux_amd64 //..." |
53 | 57 | },
|
54 | 58 | {
|
55 | 59 | "name": "linux_amd64: copy bb_asg_lifecycle_hook",
|
56 |
| - "run": "rm -f bb_asg_lifecycle_hook && bazel run --run_under cp --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 //cmd/bb_asg_lifecycle_hook $(pwd)/bb_asg_lifecycle_hook" |
| 60 | + "run": "rm -f bb_asg_lifecycle_hook && bazel run --run_under cp --platforms=@rules_go//go/toolchain:linux_amd64 //cmd/bb_asg_lifecycle_hook $(pwd)/bb_asg_lifecycle_hook" |
57 | 61 | },
|
58 | 62 | {
|
59 | 63 | "name": "linux_amd64: upload bb_asg_lifecycle_hook",
|
|
65 | 69 | },
|
66 | 70 | {
|
67 | 71 | "name": "linux_amd64: copy bb_autoscaler",
|
68 |
| - "run": "rm -f bb_autoscaler && bazel run --run_under cp --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 //cmd/bb_autoscaler $(pwd)/bb_autoscaler" |
| 72 | + "run": "rm -f bb_autoscaler && bazel run --run_under cp --platforms=@rules_go//go/toolchain:linux_amd64 //cmd/bb_autoscaler $(pwd)/bb_autoscaler" |
69 | 73 | },
|
70 | 74 | {
|
71 | 75 | "name": "linux_amd64: upload bb_autoscaler",
|
|
77 | 81 | },
|
78 | 82 | {
|
79 | 83 | "name": "linux_386: build and test",
|
80 |
| - "run": "bazel test --test_output=errors --platforms=@io_bazel_rules_go//go/toolchain:linux_386 //..." |
| 84 | + "run": "bazel test --test_output=errors --platforms=@rules_go//go/toolchain:linux_386 //..." |
81 | 85 | },
|
82 | 86 | {
|
83 | 87 | "name": "linux_386: copy bb_asg_lifecycle_hook",
|
84 |
| - "run": "rm -f bb_asg_lifecycle_hook && bazel run --run_under cp --platforms=@io_bazel_rules_go//go/toolchain:linux_386 //cmd/bb_asg_lifecycle_hook $(pwd)/bb_asg_lifecycle_hook" |
| 88 | + "run": "rm -f bb_asg_lifecycle_hook && bazel run --run_under cp --platforms=@rules_go//go/toolchain:linux_386 //cmd/bb_asg_lifecycle_hook $(pwd)/bb_asg_lifecycle_hook" |
85 | 89 | },
|
86 | 90 | {
|
87 | 91 | "name": "linux_386: upload bb_asg_lifecycle_hook",
|
|
93 | 97 | },
|
94 | 98 | {
|
95 | 99 | "name": "linux_386: copy bb_autoscaler",
|
96 |
| - "run": "rm -f bb_autoscaler && bazel run --run_under cp --platforms=@io_bazel_rules_go//go/toolchain:linux_386 //cmd/bb_autoscaler $(pwd)/bb_autoscaler" |
| 100 | + "run": "rm -f bb_autoscaler && bazel run --run_under cp --platforms=@rules_go//go/toolchain:linux_386 //cmd/bb_autoscaler $(pwd)/bb_autoscaler" |
97 | 101 | },
|
98 | 102 | {
|
99 | 103 | "name": "linux_386: upload bb_autoscaler",
|
|
105 | 109 | },
|
106 | 110 | {
|
107 | 111 | "name": "linux_arm: build and test",
|
108 |
| - "run": "bazel build --platforms=@io_bazel_rules_go//go/toolchain:linux_arm //..." |
| 112 | + "run": "bazel build --platforms=@rules_go//go/toolchain:linux_arm //..." |
109 | 113 | },
|
110 | 114 | {
|
111 | 115 | "name": "linux_arm: copy bb_asg_lifecycle_hook",
|
112 |
| - "run": "rm -f bb_asg_lifecycle_hook && bazel run --run_under cp --platforms=@io_bazel_rules_go//go/toolchain:linux_arm //cmd/bb_asg_lifecycle_hook $(pwd)/bb_asg_lifecycle_hook" |
| 116 | + "run": "rm -f bb_asg_lifecycle_hook && bazel run --run_under cp --platforms=@rules_go//go/toolchain:linux_arm //cmd/bb_asg_lifecycle_hook $(pwd)/bb_asg_lifecycle_hook" |
113 | 117 | },
|
114 | 118 | {
|
115 | 119 | "name": "linux_arm: upload bb_asg_lifecycle_hook",
|
|
121 | 125 | },
|
122 | 126 | {
|
123 | 127 | "name": "linux_arm: copy bb_autoscaler",
|
124 |
| - "run": "rm -f bb_autoscaler && bazel run --run_under cp --platforms=@io_bazel_rules_go//go/toolchain:linux_arm //cmd/bb_autoscaler $(pwd)/bb_autoscaler" |
| 128 | + "run": "rm -f bb_autoscaler && bazel run --run_under cp --platforms=@rules_go//go/toolchain:linux_arm //cmd/bb_autoscaler $(pwd)/bb_autoscaler" |
125 | 129 | },
|
126 | 130 | {
|
127 | 131 | "name": "linux_arm: upload bb_autoscaler",
|
|
133 | 137 | },
|
134 | 138 | {
|
135 | 139 | "name": "linux_arm64: build and test",
|
136 |
| - "run": "bazel build --platforms=@io_bazel_rules_go//go/toolchain:linux_arm64 //..." |
| 140 | + "run": "bazel build --platforms=@rules_go//go/toolchain:linux_arm64 //..." |
137 | 141 | },
|
138 | 142 | {
|
139 | 143 | "name": "linux_arm64: copy bb_asg_lifecycle_hook",
|
140 |
| - "run": "rm -f bb_asg_lifecycle_hook && bazel run --run_under cp --platforms=@io_bazel_rules_go//go/toolchain:linux_arm64 //cmd/bb_asg_lifecycle_hook $(pwd)/bb_asg_lifecycle_hook" |
| 144 | + "run": "rm -f bb_asg_lifecycle_hook && bazel run --run_under cp --platforms=@rules_go//go/toolchain:linux_arm64 //cmd/bb_asg_lifecycle_hook $(pwd)/bb_asg_lifecycle_hook" |
141 | 145 | },
|
142 | 146 | {
|
143 | 147 | "name": "linux_arm64: upload bb_asg_lifecycle_hook",
|
|
149 | 153 | },
|
150 | 154 | {
|
151 | 155 | "name": "linux_arm64: copy bb_autoscaler",
|
152 |
| - "run": "rm -f bb_autoscaler && bazel run --run_under cp --platforms=@io_bazel_rules_go//go/toolchain:linux_arm64 //cmd/bb_autoscaler $(pwd)/bb_autoscaler" |
| 156 | + "run": "rm -f bb_autoscaler && bazel run --run_under cp --platforms=@rules_go//go/toolchain:linux_arm64 //cmd/bb_autoscaler $(pwd)/bb_autoscaler" |
153 | 157 | },
|
154 | 158 | {
|
155 | 159 | "name": "linux_arm64: upload bb_autoscaler",
|
|
161 | 165 | },
|
162 | 166 | {
|
163 | 167 | "name": "darwin_amd64: build and test",
|
164 |
| - "run": "bazel build --platforms=@io_bazel_rules_go//go/toolchain:darwin_amd64 //..." |
| 168 | + "run": "bazel build --platforms=@rules_go//go/toolchain:darwin_amd64 //..." |
165 | 169 | },
|
166 | 170 | {
|
167 | 171 | "name": "darwin_amd64: copy bb_asg_lifecycle_hook",
|
168 |
| - "run": "rm -f bb_asg_lifecycle_hook && bazel run --run_under cp --platforms=@io_bazel_rules_go//go/toolchain:darwin_amd64 //cmd/bb_asg_lifecycle_hook $(pwd)/bb_asg_lifecycle_hook" |
| 172 | + "run": "rm -f bb_asg_lifecycle_hook && bazel run --run_under cp --platforms=@rules_go//go/toolchain:darwin_amd64 //cmd/bb_asg_lifecycle_hook $(pwd)/bb_asg_lifecycle_hook" |
169 | 173 | },
|
170 | 174 | {
|
171 | 175 | "name": "darwin_amd64: upload bb_asg_lifecycle_hook",
|
|
177 | 181 | },
|
178 | 182 | {
|
179 | 183 | "name": "darwin_amd64: copy bb_autoscaler",
|
180 |
| - "run": "rm -f bb_autoscaler && bazel run --run_under cp --platforms=@io_bazel_rules_go//go/toolchain:darwin_amd64 //cmd/bb_autoscaler $(pwd)/bb_autoscaler" |
| 184 | + "run": "rm -f bb_autoscaler && bazel run --run_under cp --platforms=@rules_go//go/toolchain:darwin_amd64 //cmd/bb_autoscaler $(pwd)/bb_autoscaler" |
181 | 185 | },
|
182 | 186 | {
|
183 | 187 | "name": "darwin_amd64: upload bb_autoscaler",
|
|
189 | 193 | },
|
190 | 194 | {
|
191 | 195 | "name": "darwin_arm64: build and test",
|
192 |
| - "run": "bazel build --platforms=@io_bazel_rules_go//go/toolchain:darwin_arm64 //..." |
| 196 | + "run": "bazel build --platforms=@rules_go//go/toolchain:darwin_arm64 //..." |
193 | 197 | },
|
194 | 198 | {
|
195 | 199 | "name": "darwin_arm64: copy bb_asg_lifecycle_hook",
|
196 |
| - "run": "rm -f bb_asg_lifecycle_hook && bazel run --run_under cp --platforms=@io_bazel_rules_go//go/toolchain:darwin_arm64 //cmd/bb_asg_lifecycle_hook $(pwd)/bb_asg_lifecycle_hook" |
| 200 | + "run": "rm -f bb_asg_lifecycle_hook && bazel run --run_under cp --platforms=@rules_go//go/toolchain:darwin_arm64 //cmd/bb_asg_lifecycle_hook $(pwd)/bb_asg_lifecycle_hook" |
197 | 201 | },
|
198 | 202 | {
|
199 | 203 | "name": "darwin_arm64: upload bb_asg_lifecycle_hook",
|
|
205 | 209 | },
|
206 | 210 | {
|
207 | 211 | "name": "darwin_arm64: copy bb_autoscaler",
|
208 |
| - "run": "rm -f bb_autoscaler && bazel run --run_under cp --platforms=@io_bazel_rules_go//go/toolchain:darwin_arm64 //cmd/bb_autoscaler $(pwd)/bb_autoscaler" |
| 212 | + "run": "rm -f bb_autoscaler && bazel run --run_under cp --platforms=@rules_go//go/toolchain:darwin_arm64 //cmd/bb_autoscaler $(pwd)/bb_autoscaler" |
209 | 213 | },
|
210 | 214 | {
|
211 | 215 | "name": "darwin_arm64: upload bb_autoscaler",
|
|
217 | 221 | },
|
218 | 222 | {
|
219 | 223 | "name": "freebsd_amd64: build and test",
|
220 |
| - "run": "bazel build --platforms=@io_bazel_rules_go//go/toolchain:freebsd_amd64 //cmd/bb_asg_lifecycle_hook //cmd/bb_autoscaler" |
| 224 | + "run": "bazel build --platforms=@rules_go//go/toolchain:freebsd_amd64 //cmd/bb_asg_lifecycle_hook //cmd/bb_autoscaler" |
221 | 225 | },
|
222 | 226 | {
|
223 | 227 | "name": "freebsd_amd64: copy bb_asg_lifecycle_hook",
|
224 |
| - "run": "rm -f bb_asg_lifecycle_hook && bazel run --run_under cp --platforms=@io_bazel_rules_go//go/toolchain:freebsd_amd64 //cmd/bb_asg_lifecycle_hook $(pwd)/bb_asg_lifecycle_hook" |
| 228 | + "run": "rm -f bb_asg_lifecycle_hook && bazel run --run_under cp --platforms=@rules_go//go/toolchain:freebsd_amd64 //cmd/bb_asg_lifecycle_hook $(pwd)/bb_asg_lifecycle_hook" |
225 | 229 | },
|
226 | 230 | {
|
227 | 231 | "name": "freebsd_amd64: upload bb_asg_lifecycle_hook",
|
|
233 | 237 | },
|
234 | 238 | {
|
235 | 239 | "name": "freebsd_amd64: copy bb_autoscaler",
|
236 |
| - "run": "rm -f bb_autoscaler && bazel run --run_under cp --platforms=@io_bazel_rules_go//go/toolchain:freebsd_amd64 //cmd/bb_autoscaler $(pwd)/bb_autoscaler" |
| 240 | + "run": "rm -f bb_autoscaler && bazel run --run_under cp --platforms=@rules_go//go/toolchain:freebsd_amd64 //cmd/bb_autoscaler $(pwd)/bb_autoscaler" |
237 | 241 | },
|
238 | 242 | {
|
239 | 243 | "name": "freebsd_amd64: upload bb_autoscaler",
|
|
245 | 249 | },
|
246 | 250 | {
|
247 | 251 | "name": "windows_amd64: build and test",
|
248 |
| - "run": "bazel build --platforms=@io_bazel_rules_go//go/toolchain:windows_amd64 //..." |
| 252 | + "run": "bazel build --platforms=@rules_go//go/toolchain:windows_amd64 //..." |
249 | 253 | },
|
250 | 254 | {
|
251 | 255 | "name": "windows_amd64: copy bb_asg_lifecycle_hook",
|
252 |
| - "run": "rm -f bb_asg_lifecycle_hook.exe && bazel run --run_under cp --platforms=@io_bazel_rules_go//go/toolchain:windows_amd64 //cmd/bb_asg_lifecycle_hook $(pwd)/bb_asg_lifecycle_hook.exe" |
| 256 | + "run": "rm -f bb_asg_lifecycle_hook.exe && bazel run --run_under cp --platforms=@rules_go//go/toolchain:windows_amd64 //cmd/bb_asg_lifecycle_hook $(pwd)/bb_asg_lifecycle_hook.exe" |
253 | 257 | },
|
254 | 258 | {
|
255 | 259 | "name": "windows_amd64: upload bb_asg_lifecycle_hook",
|
|
261 | 265 | },
|
262 | 266 | {
|
263 | 267 | "name": "windows_amd64: copy bb_autoscaler",
|
264 |
| - "run": "rm -f bb_autoscaler.exe && bazel run --run_under cp --platforms=@io_bazel_rules_go//go/toolchain:windows_amd64 //cmd/bb_autoscaler $(pwd)/bb_autoscaler.exe" |
| 268 | + "run": "rm -f bb_autoscaler.exe && bazel run --run_under cp --platforms=@rules_go//go/toolchain:windows_amd64 //cmd/bb_autoscaler $(pwd)/bb_autoscaler.exe" |
265 | 269 | },
|
266 | 270 | {
|
267 | 271 | "name": "windows_amd64: upload bb_autoscaler",
|
|
0 commit comments