Skip to content

Commit

Permalink
fixup: install protoc
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Lehner <[email protected]>
  • Loading branch information
florianl committed Jan 27, 2025
1 parent 64bbb7e commit 2eac00d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/unit-test-on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,18 @@ jobs:
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install protoc
env:
PB_URL: "https://github.com/protocolbuffers/protobuf/releases/download/v24.4/"
PB_FILE: "protoc-24.4-linux-x86_64.zip"
INSTALL_DIR: "/usr/local"
run: |
wget -q "$PB_URL/$PB_FILE"
unzip "$PB_FILE" -d "$INSTALL_DIR" 'bin/*' 'include/*'
chmod +xr "$INSTALL_DIR/bin/protoc"
find "$INSTALL_DIR/include" -type d -exec chmod +x {} \;
find "$INSTALL_DIR/include" -type f -exec chmod +r {} \;
rm "$PB_FILE"
- name: Tests
run: |
cargo test
Expand Down

0 comments on commit 2eac00d

Please sign in to comment.