Skip to content

Commit

Permalink
protoc mac
Browse files Browse the repository at this point in the history
  • Loading branch information
ktechmidas committed Oct 15, 2024
1 parent cde4ac2 commit e07e3b2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ jobs:
run: curl -Lo /tmp/protoc.zip https://github.com/protocolbuffers/protobuf/releases/download/v22.2/protoc-22.2-linux-x86_64.zip && sudo unzip -f /tmp/protoc.zip -d /usr/local && rm /tmp/protoc.zip
env:
PROTOC: /usr/local/bin/protoc

- name: Install protoc (Mac x64)
if: ${{ matrix.target == 'x86_64-apple-darwin' }}
run: curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v25.2/protoc-25.2-osx-x86_64.zip && sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc && sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*' && rm -f $PROTOC_ZIP
env:
PROTOC: /usr/local/bin/protoc

- name: Build project
run: cargo build --release --target ${{ matrix.target }}
Expand Down

0 comments on commit e07e3b2

Please sign in to comment.