Skip to content

Commit

Permalink
add windows protobuf
Browse files Browse the repository at this point in the history
  • Loading branch information
vollate committed Jun 4, 2024
1 parent 1fe06bd commit 168fbda
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ jobs:
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
targets: ${{ matrix.settings.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}

- name: install dependencies (windows only)
if: matrix.settings.platform == 'windows-latest'
run: |
Invoke-WebRequest -Uri https://github.com/protocolbuffers/protobuf/releases/download/v21.9/protoc-21.9-win64.zip -OutFile protoc.zip
Expand-Archive -Path protoc.zip -DestinationPath $Env:UserProfile\protoc
$protocPath = "$Env:UserProfile\protoc\bin\protoc.exe"
echo "PROTOC=$protocPath" >> $Env:GITHUB_ENV
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
Expand Down

0 comments on commit 168fbda

Please sign in to comment.