Skip to content

Commit daa3404

Browse files
fix(ci): ensure CMake >= 3.5 is installed for lnd_grpc_rust tests
Add a step to the CI workflow to check and install CMake if it’s missing or below version 3.5. This fixes the build failure in the LND integration tests caused by prost-build v0.10.4, which requires CMake >= 3.5. Since ubuntu-latest is not a fixed version, this ensures compatibility with potential future changes in the runner environment. Closes lightningdevkit#515
1 parent a6cb7a3 commit daa3404

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/lnd-integration.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@ jobs:
99
- name: Checkout repository
1010
uses: actions/checkout@v4
1111

12+
- name: Verify CMake version
13+
run: cmake --version
14+
15+
- name: Check and install CMake if needed
16+
# lnd_grpc_rust (via prost-build) requires CMake >= 3.5.
17+
# Since ubuntu-latest is not a fixed version,
18+
# a future update could include a lower CMake version.
19+
# This step ensures the correct version is installed.
20+
run: |
21+
if ! command -v cmake &> /dev/null || [ "$(cmake --version | head -n1 | cut -d' ' -f3)" \< "3.5" ]; then
22+
sudo apt-get update
23+
sudo apt-get install -y cmake
24+
fi
25+
1226
- name: Create temporary directory for LND data
1327
id: create-temp-dir
1428
run: echo "LND_DATA_DIR=$(mktemp -d)" >> $GITHUB_ENV

0 commit comments

Comments
 (0)