File tree Expand file tree Collapse file tree 1 file changed +11
-18
lines changed
Expand file tree Collapse file tree 1 file changed +11
-18
lines changed Original file line number Diff line number Diff line change @@ -38,25 +38,18 @@ jobs:
3838 shell : bash
3939 - name : Compute ARCH suffix and artifact name
4040 id : meta
41+ shell : powershell
4142 run : |
42- ARCH=$(uname -m)
43- case "$ARCH" in
44- arm64|aarch64)
45- ARCH_SUFFIX="aarch64"
46- ;;
47- x86_64|amd64|AMD64)
48- ARCH_SUFFIX="x86_64"
49- ;;
50- *)
51- echo "Unsupported architecture: $ARCH" >&2
52- exit 1
53- ;;
54- esac
55- ARTIFACT="protoc-gen-grpc-web-${VERSION_NUMBER}-windows-${ARCH_SUFFIX}.exe"
56- echo "ARTIFACT=$ARTIFACT" >> "$GITHUB_ENV"
57- echo "artifact=$ARTIFACT" >> "$GITHUB_OUTPUT"
58- echo "Will produce artifact: $ARTIFACT"
59- shell : bash
43+ $arch = [System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture
44+ switch ($arch) {
45+ 'Arm64' { $archSuffix = 'aarch64' }
46+ 'X64' { $archSuffix = 'x86_64' }
47+ default { Write-Error "Unsupported architecture: $arch"; exit 1 }
48+ }
49+ $artifact = "protoc-gen-grpc-web-$($env:VERSION_NUMBER)-windows-$archSuffix.exe"
50+ "ARTIFACT=$artifact" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
51+ "artifact=$artifact" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
52+ Write-Host "Will produce artifact: $artifact"
6053 - name : Install Bazelisk (Bazel)
6154 shell : powershell
6255 run : |
You can’t perform that action at this time.
0 commit comments