Skip to content

Commit f6b2e2e

Browse files
joseph-isaacsclaude
andcommitted
fix: Use Chocolatey to install protoc on Windows
The arduino/setup-protoc action has an issue with Expand-Archive on Windows runners. Use Chocolatey instead to install protoc on Windows. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> Signed-off-by: Joe Isaacs <[email protected]>
1 parent c285c9b commit f6b2e2e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/actions/setup-rust/action.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,16 @@ runs:
5050
shell: bash
5151
run: echo "PATH=$PATH" >> $GITHUB_ENV
5252

53-
- name: Add PowerShell to PATH (Windows)
54-
if: runner.os == 'Windows'
55-
shell: bash
56-
run: echo "C:\Windows\System32\WindowsPowerShell\v1.0" >> $GITHUB_PATH
57-
5853
- name: Install Protoc (for lance-encoding build step)
54+
if: runner.os != 'Windows'
5955
uses: arduino/setup-protoc@v3
6056
with:
6157
version: "29.3"
6258
repo-token: ${{ inputs.repo-token }}
59+
60+
- name: Install Protoc on Windows
61+
if: runner.os == 'Windows'
62+
shell: bash
63+
run: |
64+
choco install protoc --version=29.3 -y
65+
echo "C:\ProgramData\chocolatey\lib\protoc\tools\bin" >> $GITHUB_PATH

0 commit comments

Comments
 (0)