File tree Expand file tree Collapse file tree 6 files changed +22
-57
lines changed Expand file tree Collapse file tree 6 files changed +22
-57
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,6 @@ build --host_copt=-Wno-error=deprecated-declarations
5
5
# Required until this is the default; expected in Bazel 7
6
6
common --enable_bzlmod
7
7
8
- # Load any settings specific to the current user.
9
- # .bazelrc.user should appear in .gitignore so that settings are not shared with team members
10
- # This needs to be last statement in this
11
- # config, as the user configuration should be able to overwrite flags from this file.
12
- # See https://docs.bazel.build/versions/master/best-practices.html#bazelrc
13
- # (Note that we use .bazelrc.user so the file appears next to .bazelrc in directory listing,
14
- # rather than user.bazelrc as suggested in the Bazel docs)
8
+ # Per-user settings (gitignored). Keep last so local flags can override.
9
+ # Docs: https://bazel.build/configure/best-practices#bazelrc
15
10
try-import %workspace%/.bazelrc.user
16
-
Original file line number Diff line number Diff line change @@ -7,3 +7,7 @@ build --host_copt=-DABSL_HAVE_WORKING_GCC_WNO_DEPRECATED_DECLARATIONS=0
7
7
8
8
# Required until this is the default; expected in Bazel 7
9
9
common --enable_bzlmod
10
+
11
+ # Per-user settings (gitignored). Keep last so local flags can override.
12
+ # Docs: https://bazel.build/configure/best-practices#bazelrc
13
+ try-import %workspace%/.bazelrc.user
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 88
88
run : |
89
89
openssl dgst -sha256 -r -out ${ARTIFACT}.sha256 \
90
90
${ARTIFACT}
91
- - name : verify sha256
91
+ - name : Verify sha256
92
92
run : sha256sum -c ${ARTIFACT}.sha256
93
93
- name : Upload artifacts
94
94
uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change 1
- name : Make MacOS Plugin
1
+ name : Make macOS Plugin
2
2
3
3
on :
4
4
push :
58
58
- name : Install Bazelisk (Bazel)
59
59
run : |
60
60
brew update
61
- brew install bazelisk coreutils
61
+ brew install bazelisk
62
62
bazelisk version
63
63
- name : Build protoc-gen-grpc-web with Bazel
64
64
run : |
71
71
run : |
72
72
openssl dgst -sha256 -r -out ${ARTIFACT}.sha256 \
73
73
${ARTIFACT}
74
- - name : verify sha256
74
+ - name : Verify sha256
75
75
run : shasum -a 256 -c ${ARTIFACT}.sha256
76
76
- name : Upload artifacts
77
77
uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change @@ -38,25 +38,18 @@ jobs:
38
38
shell : bash
39
39
- name : Compute ARCH suffix and artifact name
40
40
id : meta
41
+ shell : powershell
41
42
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"
60
53
- name : Install Bazelisk (Bazel)
61
54
shell : powershell
62
55
run : |
85
78
run : |
86
79
openssl dgst -sha256 -r -out "${ARTIFACT}.sha256" "${ARTIFACT}"
87
80
shell : bash
88
- - name : verify sha256
81
+ - name : Verify sha256
89
82
shell : powershell
90
83
run : |
91
84
$shaFile = "${env:ARTIFACT}.sha256"
You can’t perform that action at this time.
0 commit comments