|
71 | 71 | echo "Not a PR event." |
72 | 72 | fi |
73 | 73 |
|
74 | | - - name: Set up Python 3.10 |
75 | | - uses: actions/setup-python@v5 |
76 | | - with: |
77 | | - python-version: "3.10" |
78 | | - |
79 | | - - name: Install uv |
80 | | - uses: astral-sh/setup-uv@v5 |
81 | | - |
82 | | - - name: Install dependencies |
83 | | - run: | |
84 | | - bash -x .github/scripts/setup.sh |
85 | | - # We're going to check BOLT quotes, so get the latest version |
86 | | - git clone https://github.com/lightning/bolts.git ../${BOLTDIR} |
87 | | - - name: Configure |
88 | | - run: ./configure --enable-debugbuild --enable-rust |
89 | | - - name: Check source |
90 | | - env: |
91 | | - VALGRIND: 0 |
92 | | - PYTEST_OPTS: --timeout=1200 --durations=10 |
93 | | - run: | |
94 | | - uv run make check-source BASE_REF="origin/${{ github.base_ref }}" |
95 | | - - name: Check Generated Files have been updated |
96 | | - run: uv run make check-gen-updated |
97 | | - - name: Check docs |
98 | | - run: uv run make check-doc |
99 | | - |
100 | 74 | compile: |
101 | 75 | name: Compile CLN ${{ matrix.cfg }} |
102 | 76 | runs-on: ubuntu-22.04 |
@@ -162,6 +136,58 @@ jobs: |
162 | 136 | name: cln-${{ matrix.CFG }}.tar.bz2 |
163 | 137 | path: cln-${{ matrix.CFG }}.tar.bz2 |
164 | 138 |
|
| 139 | + postbuild: |
| 140 | + name: Postbuild checks |
| 141 | + runs-on: ubuntu-22.04 |
| 142 | + timeout-minutes: 30 |
| 143 | + env: |
| 144 | + BOLTDIR: bolts |
| 145 | + needs: |
| 146 | + - compile |
| 147 | + strategy: |
| 148 | + fail-fast: true |
| 149 | + matrix: |
| 150 | + include: |
| 151 | + - CFG: compile-gcc |
| 152 | + VALGRIND: 1 |
| 153 | + - CFG: compile-clang-sanitizers |
| 154 | + VALGRIND: 0 |
| 155 | + steps: |
| 156 | + - name: Checkout |
| 157 | + uses: actions/checkout@v4 |
| 158 | + |
| 159 | + - name: Set up Python 3.10 |
| 160 | + uses: actions/setup-python@v5 |
| 161 | + with: |
| 162 | + python-version: "3.10" |
| 163 | + |
| 164 | + - name: Install uv |
| 165 | + uses: astral-sh/setup-uv@v5 |
| 166 | + |
| 167 | + - name: Install dependencies |
| 168 | + run: | |
| 169 | + bash -x .github/scripts/setup.sh |
| 170 | + sudo apt-get update -qq |
| 171 | + # We're going to check BOLT quotes, so get the latest version |
| 172 | + git clone https://github.com/lightning/bolts.git ../${BOLTDIR} |
| 173 | +
|
| 174 | + - name: Download build |
| 175 | + uses: actions/download-artifact@v4 |
| 176 | + with: |
| 177 | + name: cln-${{ matrix.CFG }}.tar.bz2 |
| 178 | + |
| 179 | + - name: Check source |
| 180 | + env: |
| 181 | + VALGRIND: 0 |
| 182 | + PYTEST_OPTS: --timeout=1200 --durations=10 |
| 183 | + run: | |
| 184 | + tar -xmaf cln-${{ matrix.CFG }}.tar.bz2 |
| 185 | + uv run make check-source BASE_REF="origin/${{ github.base_ref }}" |
| 186 | + - name: Check Generated Files have been updated |
| 187 | + run: uv run make check-gen-updated |
| 188 | + - name: Check docs |
| 189 | + run: uv run make check-doc |
| 190 | + |
165 | 191 | check-units: |
166 | 192 | # The unit test checks are not in the critical path (not dependent |
167 | 193 | # on the integration tests), so run them with `valgrind` |
@@ -608,17 +634,19 @@ jobs: |
608 | 634 | - integration-valgrind |
609 | 635 | - integration-sanitizers |
610 | 636 | - min-btc-support |
| 637 | + - postbuild |
611 | 638 | if: ${{ always() }} |
612 | 639 | steps: |
613 | 640 | - name: Complete |
614 | 641 | env: |
615 | | - JOB_NAMES: "INTEGRATION CHECK_UNITS VALGRIND SANITIZERS BTC" |
| 642 | + JOB_NAMES: "INTEGRATION CHECK_UNITS VALGRIND SANITIZERS BTC POSTBUILD" |
616 | 643 | INTEGRATION: ${{ needs.integration.result }} |
617 | 644 | CHECK_UNITS: ${{ needs['check-units'].result }} |
618 | 645 | VALGRIND: ${{ needs['integration-valgrind'].result }} |
619 | 646 | SANITIZERS: ${{ needs['integration-sanitizers'].result }} |
620 | 647 | DOCS: ${{ needs['update-docs-examples'].result }} |
621 | 648 | BTC: ${{ needs['min-btc-support'].result }} |
| 649 | + POSTBUILD: ${{ needs['postbuild'].result }} |
622 | 650 | run: | |
623 | 651 | failed="" |
624 | 652 | for name in $JOB_NAMES; do |
|
0 commit comments