From d744924c4035f39621271d96b447d1583a18d54f Mon Sep 17 00:00:00 2001 From: Phillip Mienk Date: Fri, 18 Sep 2026 22:15:13 -0700 Subject: [PATCH 1/2] Regenerate with checkout failure cleanup correction. --- .github/workflows/ci-expanded.yml | 42 +++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 42 +++++++++++++++++++++++++++++++ .gitignore | 5 ++++ 3 files changed, 89 insertions(+) diff --git a/.github/workflows/ci-expanded.yml b/.github/workflows/ci-expanded.yml index 54ee11560..1384d2efb 100644 --- a/.github/workflows/ci-expanded.yml +++ b/.github/workflows/ci-expanded.yml @@ -422,6 +422,7 @@ jobs: fi - name: Checkout repository [libbitcoin-system] + id: checkout-libbitcoin-system continue-on-error: true uses: actions/checkout@v6 with: @@ -430,13 +431,23 @@ jobs: ref: ${{ steps.get-branch.outputs.branch }} repository: ${{ github.repository_owner }}/libbitcoin-system + - name: Checkout repository [libbitcoin-system] cleanup on failure + continue-on-error: true + if: steps.checkout-libbitcoin-system.outcome == 'failure' + shell: bash + run: | + rm -rf ${{ github.workspace }}/libbitcoin-system + + - name: Checkout repository [libbitcoin-database] + id: checkout-libbitcoin-database uses: actions/checkout@v6 with: fetch-depth: 1 path: 'libbitcoin-database' repository: ${{ github.repository }} + - name: Prepare toolchain [linux] if: ${{ startsWith(matrix.image, 'ubuntu') }} shell: bash @@ -930,6 +941,7 @@ jobs: fi - name: Checkout repository [libbitcoin-system] + id: checkout-libbitcoin-system continue-on-error: true uses: actions/checkout@v6 with: @@ -938,13 +950,23 @@ jobs: ref: ${{ steps.get-branch.outputs.branch }} repository: ${{ github.repository_owner }}/libbitcoin-system + - name: Checkout repository [libbitcoin-system] cleanup on failure + continue-on-error: true + if: steps.checkout-libbitcoin-system.outcome == 'failure' + shell: bash + run: | + rm -rf ${{ github.workspace }}/libbitcoin-system + + - name: Checkout repository [libbitcoin-database] + id: checkout-libbitcoin-database uses: actions/checkout@v6 with: fetch-depth: 1 path: 'libbitcoin-database' repository: ${{ github.repository }} + - name: Prepare toolchain [linux] if: ${{ startsWith(matrix.image, 'ubuntu') }} shell: bash @@ -1366,6 +1388,7 @@ jobs: fi - name: Checkout repository [libbitcoin-system] + id: checkout-libbitcoin-system continue-on-error: true uses: actions/checkout@v6 with: @@ -1374,13 +1397,23 @@ jobs: ref: ${{ steps.get-branch.outputs.branch }} repository: ${{ github.repository_owner }}/libbitcoin-system + - name: Checkout repository [libbitcoin-system] cleanup on failure + continue-on-error: true + if: steps.checkout-libbitcoin-system.outcome == 'failure' + shell: bash + run: | + rm -rf ${{ github.workspace }}/libbitcoin-system + + - name: Checkout repository [libbitcoin-database] + id: checkout-libbitcoin-database uses: actions/checkout@v6 with: fetch-depth: 1 path: 'libbitcoin-database' repository: ${{ github.repository }} + - name: Prepare toolchain [linux] if: ${{ startsWith(matrix.image, 'ubuntu') }} shell: bash @@ -1529,6 +1562,7 @@ jobs: msbuild-architecture: x64 - name: Checkout repository [libbitcoin-system] + id: checkout-libbitcoin-system continue-on-error: true uses: actions/checkout@v6 with: @@ -1537,7 +1571,15 @@ jobs: ref: ${{ steps.get-branch.outputs.branch }} repository: ${{ github.repository_owner }}/libbitcoin-system + - name: Checkout repository [libbitcoin-system] cleanup on failure + continue-on-error: true + if: steps.checkout-libbitcoin-system.outcome == 'failure' + shell: powershell + run: | + Remove-Item -Path ${{ github.workspace }}\libbitcoin-system -Recurse -Force -ErrorAction SilentlyContinue + - name: Checkout repository [libbitcoin-database] + id: checkout-libbitcoin-database uses: actions/checkout@v6 with: fetch-depth: 1 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 108a7839b..f82d24f5a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -115,6 +115,7 @@ jobs: fi - name: Checkout repository [libbitcoin-system] + id: checkout-libbitcoin-system continue-on-error: true uses: actions/checkout@v6 with: @@ -123,13 +124,23 @@ jobs: ref: ${{ steps.get-branch.outputs.branch }} repository: ${{ github.repository_owner }}/libbitcoin-system + - name: Checkout repository [libbitcoin-system] cleanup on failure + continue-on-error: true + if: steps.checkout-libbitcoin-system.outcome == 'failure' + shell: bash + run: | + rm -rf ${{ github.workspace }}/libbitcoin-system + + - name: Checkout repository [libbitcoin-database] + id: checkout-libbitcoin-database uses: actions/checkout@v6 with: fetch-depth: 1 path: 'libbitcoin-database' repository: ${{ github.repository }} + - name: Prepare toolchain [linux] if: ${{ startsWith(matrix.image, 'ubuntu') }} shell: bash @@ -316,6 +327,7 @@ jobs: fi - name: Checkout repository [libbitcoin-system] + id: checkout-libbitcoin-system continue-on-error: true uses: actions/checkout@v6 with: @@ -324,13 +336,23 @@ jobs: ref: ${{ steps.get-branch.outputs.branch }} repository: ${{ github.repository_owner }}/libbitcoin-system + - name: Checkout repository [libbitcoin-system] cleanup on failure + continue-on-error: true + if: steps.checkout-libbitcoin-system.outcome == 'failure' + shell: bash + run: | + rm -rf ${{ github.workspace }}/libbitcoin-system + + - name: Checkout repository [libbitcoin-database] + id: checkout-libbitcoin-database uses: actions/checkout@v6 with: fetch-depth: 1 path: 'libbitcoin-database' repository: ${{ github.repository }} + - name: Prepare toolchain [linux] if: ${{ startsWith(matrix.image, 'ubuntu') }} shell: bash @@ -480,6 +502,7 @@ jobs: fi - name: Checkout repository [libbitcoin-system] + id: checkout-libbitcoin-system continue-on-error: true uses: actions/checkout@v6 with: @@ -488,13 +511,23 @@ jobs: ref: ${{ steps.get-branch.outputs.branch }} repository: ${{ github.repository_owner }}/libbitcoin-system + - name: Checkout repository [libbitcoin-system] cleanup on failure + continue-on-error: true + if: steps.checkout-libbitcoin-system.outcome == 'failure' + shell: bash + run: | + rm -rf ${{ github.workspace }}/libbitcoin-system + + - name: Checkout repository [libbitcoin-database] + id: checkout-libbitcoin-database uses: actions/checkout@v6 with: fetch-depth: 1 path: 'libbitcoin-database' repository: ${{ github.repository }} + - name: Prepare toolchain [linux] if: ${{ startsWith(matrix.image, 'ubuntu') }} shell: bash @@ -631,6 +664,7 @@ jobs: msbuild-architecture: x64 - name: Checkout repository [libbitcoin-system] + id: checkout-libbitcoin-system continue-on-error: true uses: actions/checkout@v6 with: @@ -639,7 +673,15 @@ jobs: ref: ${{ steps.get-branch.outputs.branch }} repository: ${{ github.repository_owner }}/libbitcoin-system + - name: Checkout repository [libbitcoin-system] cleanup on failure + continue-on-error: true + if: steps.checkout-libbitcoin-system.outcome == 'failure' + shell: powershell + run: | + Remove-Item -Path ${{ github.workspace }}\libbitcoin-system -Recurse -Force -ErrorAction SilentlyContinue + - name: Checkout repository [libbitcoin-database] + id: checkout-libbitcoin-database uses: actions/checkout@v6 with: fetch-depth: 1 diff --git a/.gitignore b/.gitignore index 2b1f770f1..2427ca2ce 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,11 @@ # python bytecode *.pyc +# store +*.bin +*.head +*.data + # gnu .deps Makefile From bc8f256acb20903b4d9a891733a1d11c59109537 Mon Sep 17 00:00:00 2001 From: Phillip Mienk Date: Fri, 18 Sep 2026 23:13:42 -0700 Subject: [PATCH 2/2] Alter behavior on pull request closed. --- .github/workflows/ci-expanded.yml | 11 ++++++++++- .github/workflows/ci.yml | 14 +++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-expanded.yml b/.github/workflows/ci-expanded.yml index 1384d2efb..a5a5f820a 100644 --- a/.github/workflows/ci-expanded.yml +++ b/.github/workflows/ci-expanded.yml @@ -7,7 +7,8 @@ name: Expanded Continuous Integration -on: [ workflow_dispatch ] +on: + workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.repository_owner == 'libbitcoin' && (github.event.pull_request.number || github.run_id) || github.ref }} @@ -34,6 +35,8 @@ jobs: gnu: + if: github.event_name != 'pull_request' || github.event.action != 'closed' + strategy: fail-fast: false @@ -553,6 +556,8 @@ jobs: if-no-files-found: warn cmake: + if: github.event_name != 'pull_request' || github.event.action != 'closed' + strategy: fail-fast: false @@ -1072,6 +1077,8 @@ jobs: if-no-files-found: warn presets: + if: github.event_name != 'pull_request' || github.event.action != 'closed' + strategy: fail-fast: false @@ -1514,6 +1521,8 @@ jobs: if-no-files-found: warn msvc: + if: github.event_name != 'pull_request' || github.event.action != 'closed' + strategy: fail-fast: false diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f82d24f5a..6d5c1785c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,11 @@ name: Continuous Integration -on: [ pull_request, push, workflow_dispatch ] +on: + pull_request: + types: [opened, synchronize, reopened, closed] + push: + workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.repository_owner == 'libbitcoin' && (github.event.pull_request.number || github.run_id) || github.ref }} @@ -34,6 +38,8 @@ jobs: gnu: + if: github.event_name != 'pull_request' || github.event.action != 'closed' + strategy: fail-fast: false @@ -246,6 +252,8 @@ jobs: if-no-files-found: warn cmake: + if: github.event_name != 'pull_request' || github.event.action != 'closed' + strategy: fail-fast: false @@ -458,6 +466,8 @@ jobs: if-no-files-found: warn presets: + if: github.event_name != 'pull_request' || github.event.action != 'closed' + strategy: fail-fast: false @@ -628,6 +638,8 @@ jobs: if-no-files-found: warn msvc: + if: github.event_name != 'pull_request' || github.event.action != 'closed' + strategy: fail-fast: false