From 2bf359582dd019411dfcdf3545545705a9da16c4 Mon Sep 17 00:00:00 2001 From: Sergi Delgado Segura Date: Mon, 29 Jul 2024 16:17:37 -0400 Subject: [PATCH] Adds protoc GH actions to watchtower-plugin job --- .github/workflows/cln-plugin.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cln-plugin.yaml b/.github/workflows/cln-plugin.yaml index 4933975a..dd150e85 100644 --- a/.github/workflows/cln-plugin.yaml +++ b/.github/workflows/cln-plugin.yaml @@ -1,6 +1,6 @@ name: CI tests for CLN watchtower-plugin -on: +on: push: branches: - master @@ -19,6 +19,9 @@ jobs: with: python-version: '3.9' check-latest: true + - uses: arduino/setup-protoc@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Create CLN cache id: cache-cln uses: actions/cache@v4 @@ -28,11 +31,11 @@ jobs: path: lightning key: ${{ runner.os }}-build-${{ env.cache-name }}-v${{ env.cln_version }} - name: Compile CLN - env: + env: PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring if: ${{ steps.cache-cln.outputs.cache-hit != 'true' }} run: | - sudo apt-get update && sudo apt-get install -y gettext protobuf-compiler + sudo apt-get update && sudo apt-get install -y gettext git clone https://github.com/ElementsProject/lightning.git && cd lightning && git checkout v${{ env.cln_version }} pip install --user poetry && poetry install ./configure && poetry run make @@ -46,6 +49,9 @@ jobs: with: python-version: '3.9' check-latest: true + - uses: arduino/setup-protoc@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Install bitcoind run: | wget https://bitcoincore.org/bin/bitcoin-core-${{ env.bitcoind_version }}/bitcoin-${{ env.bitcoind_version }}-x86_64-linux-gnu.tar.gz @@ -64,7 +70,7 @@ jobs: cd lightning && sudo make install - name: Install teos and the plugin run: | - cargo install --locked --path teos + cargo install --locked --path teos cargo install --locked --path watchtower-plugin - name: Add test dependencies run: |