mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
ci: Add protoc compiler to setup
This commit is contained in:
12
.github/scripts/setup.sh
vendored
12
.github/scripts/setup.sh
vendored
@@ -71,3 +71,15 @@ sudo chmod 0440 /etc/sudoers.d/tester
|
|||||||
|
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
|
||||||
-y --default-toolchain ${RUST_VERSION}
|
-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
|
||||||
3
.github/workflows/ci.yaml
vendored
3
.github/workflows/ci.yaml
vendored
@@ -5,6 +5,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- "master"
|
- "master"
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
smoke-test:
|
smoke-test:
|
||||||
name: Smoke Test ${{ matrix.cfg }}
|
name: Smoke Test ${{ matrix.cfg }}
|
||||||
@@ -61,6 +62,8 @@ jobs:
|
|||||||
TEST_GROUP_COUNT: ${{ matrix.TEST_GROUP_COUNT }}
|
TEST_GROUP_COUNT: ${{ matrix.TEST_GROUP_COUNT }}
|
||||||
TEST_GROUP: ${{ matrix.TEST_GROUP }}
|
TEST_GROUP: ${{ matrix.TEST_GROUP }}
|
||||||
run: |
|
run: |
|
||||||
|
echo $PROTOC
|
||||||
|
which protoc
|
||||||
bash -x .github/scripts/build.sh
|
bash -x .github/scripts/build.sh
|
||||||
|
|
||||||
- name: Upload Unit Test Results
|
- name: Upload Unit Test Results
|
||||||
|
|||||||
Reference in New Issue
Block a user