Skip to content

Commit 9e09b7a

Browse files
committed
EXP - fix(ci): replace Docker-based plugin build with Bazelisk installation and build process
1 parent 69d5615 commit 9e09b7a

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/make-plugin-linux.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,23 @@ jobs:
3030
VERSION="${VERSION//\//-}"
3131
echo "VERSION_NUMBER=$VERSION" >> "$GITHUB_ENV"
3232
echo "Computed VERSION_NUMBER=$VERSION"
33-
- name: Build plugin docker image
34-
run: docker compose build --no-cache prereqs protoc-plugin
35-
- name: Copy binary from Docker image
33+
- name: Install Bazelisk (Bazel)
3634
run: |
37-
docker cp $(docker create grpcweb/protoc-plugin):/github/grpc-web/javascript/net/grpc/web/generator/protoc-gen-grpc-web \
35+
sudo apt-get update
36+
sudo apt-get install -y unzip zip
37+
sudo curl -L -o /usr/local/bin/bazelisk \
38+
https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64
39+
sudo chmod +x /usr/local/bin/bazelisk
40+
# Also provide `bazel` symlink for tools that expect it
41+
sudo ln -sf /usr/local/bin/bazelisk /usr/local/bin/bazel
42+
- name: Print Bazel version
43+
run: bazelisk version
44+
- name: Build protoc-gen-grpc-web with Bazel
45+
run: |
46+
bazelisk build //javascript/net/grpc/web/generator:protoc-gen-grpc-web
47+
- name: Move artifact
48+
run: |
49+
mv bazel-bin/javascript/net/grpc/web/generator/protoc-gen-grpc-web \
3850
./protoc-gen-grpc-web-${VERSION_NUMBER}-linux-x86_64
3951
- name: gen sha256
4052
run: |

0 commit comments

Comments
 (0)