CI: use specific python versions per CLN version

This commit is contained in:
daywalker90 2026-07-26 13:14:09 +02:00
parent af306edd3a
commit fb972c5ed1
11 changed files with 55 additions and 49 deletions

View file

@ -17,6 +17,12 @@ on:
tagged-release:
required: true
type: boolean
python-version-1:
required: true
type: string
python-version-2:
required: true
type: string
jobs:
build:
@ -27,7 +33,7 @@ jobs:
bitcoind-version: ["31.0"]
experimental: [1]
deprecated: [0]
python-version: ["3.10", "3.14"]
python-version: [ "${{ inputs.python-version-1 }}", "${{ inputs.python-version-2 }}"]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
@ -119,25 +125,21 @@ jobs:
key: ${{ steps.cache-cln.outputs.cache-primary-key }}
- name: Set up Rust
if: ${{ inputs.tagged-release == false}}
if: ${{ inputs.tagged-release == false }}
uses: dtolnay/rust-toolchain@stable
- name: Set up protoc
if: ${{ inputs.tagged-release == false}}
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install cargo-binstall
if: ${{ inputs.tagged-release == false}}
if: ${{ inputs.tagged-release == false }}
uses: taiki-e/install-action@cargo-binstall
- name: Install cargo-msrv
if: ${{ inputs.tagged-release == false}}
if: ${{ inputs.tagged-release == false }}
env:
GITHUB_TOKEN: ${{ github.token }}
run: cargo binstall --no-confirm cargo-msrv
- name: Verify MSRV
if: ${{ inputs.tagged-release == false}}
if: ${{ inputs.tagged-release == false }}
run: cargo msrv verify
- name: Get plugin binary

View file

@ -1,14 +0,0 @@
name: Latest release on CLN v25.05.x
on:
release:
types: [published, edited]
workflow_dispatch:
jobs:
call-ci:
uses: ./.github/workflows/ci.yml
with:
cln-version: "v25.05"
pyln-version: "25.5"
tagged-release: true

View file

@ -9,6 +9,8 @@ jobs:
call-ci:
uses: ./.github/workflows/ci.yml
with:
cln-version: "v25.09.2"
pyln-version: "25.9.2"
cln-version: "v25.09.3"
pyln-version: "25.9.3"
tagged-release: true
python-version-1: "3.10"
python-version-2: "3.12"

View file

@ -9,6 +9,8 @@ jobs:
call-ci:
uses: ./.github/workflows/ci.yml
with:
cln-version: "v25.12"
pyln-version: "25.12"
tagged-release: true
cln-version: "v25.12.1"
pyln-version: "25.12.1"
tagged-release: true
python-version-1: "3.10"
python-version-2: "3.12"

View file

@ -12,3 +12,5 @@ jobs:
cln-version: "v26.04"
pyln-version: "26.4"
tagged-release: true
python-version-1: "3.10"
python-version-2: "3.12"

16
.github/workflows/latest_v26.06.yml vendored Normal file
View file

@ -0,0 +1,16 @@
name: Latest release on CLN v26.06.x
on:
release:
types: [published, edited]
workflow_dispatch:
jobs:
call-ci:
uses: ./.github/workflows/ci.yml
with:
cln-version: "v26.06.6"
pyln-version: "26.6.6"
tagged-release: true
python-version-1: "3.10"
python-version-2: "3.14"

View file

@ -19,6 +19,8 @@ jobs:
call-ci:
uses: ./.github/workflows/ci.yml
with:
cln-version: "v25.09.2"
pyln-version: "25.9.2"
cln-version: "v25.09.3"
pyln-version: "25.9.3"
tagged-release: false
python-version-1: "3.10"
python-version-2: "3.12"

View file

@ -19,6 +19,8 @@ jobs:
call-ci:
uses: ./.github/workflows/ci.yml
with:
cln-version: "v25.12"
pyln-version: "25.12"
cln-version: "v25.12.1"
pyln-version: "25.12.1"
tagged-release: false
python-version-1: "3.10"
python-version-2: "3.12"

View file

@ -22,3 +22,5 @@ jobs:
cln-version: "v26.04"
pyln-version: "26.4"
tagged-release: false
python-version-1: "3.10"
python-version-2: "3.12"

View file

@ -1,4 +1,4 @@
name: master on CLN v25.05.x
name: master on CLN v26.06.x
on:
push:
@ -19,6 +19,8 @@ jobs:
call-ci:
uses: ./.github/workflows/ci.yml
with:
cln-version: "v25.05"
pyln-version: "25.5"
cln-version: "v26.06.6"
pyln-version: "26.6.6"
tagged-release: false
python-version-1: "3.10"
python-version-2: "3.14"

View file

@ -25,12 +25,6 @@ jobs:
sudo apt update
sudo apt install -y gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
version: "21.12"
- name: Build Linux binaries (release)
run: |
cargo build --profile optimized --locked --target x86_64-unknown-linux-gnu
@ -70,12 +64,6 @@ jobs:
with:
targets: x86_64-apple-darwin, aarch64-apple-darwin
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
version: "21.12"
- name: Build macOS universal (release)
id: build
env: