Skip to content

Rework release workflows using Github runners (replacing Zig) #52

Rework release workflows using Github runners (replacing Zig)

Rework release workflows using Github runners (replacing Zig) #52

name: Make Windows Plugin
on:
push:
paths:
- .github/workflows/make-plugin-windows.yml
pull_request:
paths:
- .github/workflows/make-plugin-windows.yml
workflow_dispatch:
inputs:
version_number:
description: 'Version number'
required: true
default: '2.x.x'
jobs:
build:
runs-on: windows-2025
steps:
- uses: actions/checkout@v3
- name: Compute VERSION_NUMBER
run: |
INPUT_VERSION="${{ github.event.inputs.version_number }}"
if [ -n "$INPUT_VERSION" ]; then
VERSION="$INPUT_VERSION"
else
VERSION="$GITHUB_REF_NAME"
fi
VERSION="${VERSION//\//-}"
echo "VERSION_NUMBER=$VERSION" >> "$GITHUB_ENV"
echo "Computed VERSION_NUMBER=$VERSION"
shell: bash
- name: Print Bazel version
run: |
bazel version
- name: build
run: bazel --noworkspace_rc --bazelrc=.bazelrc.windows build javascript/net/grpc/web/generator:protoc-gen-grpc-web
- name: move
run: |
mv bazel-bin/javascript/net/grpc/web/generator/protoc-gen-grpc-web.exe \
./protoc-gen-grpc-web-${VERSION_NUMBER}-windows-x86_64.exe
shell: bash
- name: gen sha256
run: |
openssl dgst -sha256 -r -out protoc-gen-grpc-web-${VERSION_NUMBER}-windows-x86_64.exe.sha256 \
protoc-gen-grpc-web-${VERSION_NUMBER}-windows-x86_64.exe
shell: bash
# TODO: Check sha256 (sha256sum not available for now. )
#- name: verify sha256
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: plugin
path: protoc-gen-grpc-web*