ci: Add protoc compiler to setup

This commit is contained in:
Christian Decker 2022-12-16 15:56:21 +01:00
parent f63ec15116
commit 3ae58c4429
2 changed files with 15 additions and 0 deletions

View File

@ -71,3 +71,15 @@ sudo chmod 0440 /etc/sudoers.d/tester
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
-y --default-toolchain ${RUST_VERSION}
# We also need a relatively recent protobuf-compiler, at least 3.12.0,
# in order to support the experimental `optional` flag.
PROTOC_VERSION=3.15.8
PB_REL="https://github.com/protocolbuffers/protobuf/releases"
curl -LO $PB_REL/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip
sudo unzip protoc-3.15.8-linux-x86_64.zip -d /usr/local/
sudo chmod a+x /usr/local/bin/protoc
export PROTOC=/usr/local/bin/protoc
export PATH=$PATH:/usr/local/bin
env
ls -lha /usr/local/bin

View File

@ -5,6 +5,7 @@ on:
branches:
- "master"
pull_request:
jobs:
smoke-test:
name: Smoke Test ${{ matrix.cfg }}
@ -61,6 +62,8 @@ jobs:
TEST_GROUP_COUNT: ${{ matrix.TEST_GROUP_COUNT }}
TEST_GROUP: ${{ matrix.TEST_GROUP }}
run: |
echo $PROTOC
which protoc
bash -x .github/scripts/build.sh
- name: Upload Unit Test Results