Skip to content

Commit

Permalink
install protoc properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ktechmidas committed Oct 13, 2024
1 parent 38d5eda commit d7627e0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,17 @@ jobs:
- name: Install essentials
run: sudo apt-get update && sudo apt-get install -y build-essential pkg-config clang cmake unzip libsqlite3-dev && uname -a && pwd

- name: Install protoc
- name: Install protoc (ARM)
if: ${{ matrix.platform == 'arm64' }}
run: curl -Lo /tmp/protoc.zip https://github.com/protocolbuffers/protobuf/releases/download/v25.2/protoc-25.2-linux-aarch_64.zip && sudo unzip -f /tmp/protoc.zip -d /usr/local && rm /tmp/protoc.zip
env:
PROTOC: /usr/local/bin/protoc

- name: Install protoc (AMD)
if: ${{ matrix.platform == 'amd64' }}
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: Build project
run: cargo build --release --target ${{ matrix.target }}
Expand Down

0 comments on commit d7627e0

Please sign in to comment.