Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 52 additions & 1 deletion .github/workflows/ci-expanded.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -34,6 +35,8 @@ jobs:


gnu:
if: github.event_name != 'pull_request' || github.event.action != 'closed'

strategy:
fail-fast: false

Expand Down Expand Up @@ -422,6 +425,7 @@ jobs:
fi

- name: Checkout repository [libbitcoin-system]
id: checkout-libbitcoin-system
continue-on-error: true
uses: actions/checkout@v6
with:
Expand All @@ -430,13 +434,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
Expand Down Expand Up @@ -542,6 +556,8 @@ jobs:
if-no-files-found: warn

cmake:
if: github.event_name != 'pull_request' || github.event.action != 'closed'

strategy:
fail-fast: false

Expand Down Expand Up @@ -930,6 +946,7 @@ jobs:
fi

- name: Checkout repository [libbitcoin-system]
id: checkout-libbitcoin-system
continue-on-error: true
uses: actions/checkout@v6
with:
Expand All @@ -938,13 +955,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
Expand Down Expand Up @@ -1050,6 +1077,8 @@ jobs:
if-no-files-found: warn

presets:
if: github.event_name != 'pull_request' || github.event.action != 'closed'

strategy:
fail-fast: false

Expand Down Expand Up @@ -1366,6 +1395,7 @@ jobs:
fi

- name: Checkout repository [libbitcoin-system]
id: checkout-libbitcoin-system
continue-on-error: true
uses: actions/checkout@v6
with:
Expand All @@ -1374,13 +1404,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
Expand Down Expand Up @@ -1481,6 +1521,8 @@ jobs:
if-no-files-found: warn

msvc:
if: github.event_name != 'pull_request' || github.event.action != 'closed'

strategy:
fail-fast: false

Expand Down Expand Up @@ -1529,6 +1571,7 @@ jobs:
msbuild-architecture: x64

- name: Checkout repository [libbitcoin-system]
id: checkout-libbitcoin-system
continue-on-error: true
uses: actions/checkout@v6
with:
Expand All @@ -1537,7 +1580,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
Expand Down
56 changes: 55 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -34,6 +38,8 @@ jobs:


gnu:
if: github.event_name != 'pull_request' || github.event.action != 'closed'

strategy:
fail-fast: false

Expand Down Expand Up @@ -115,6 +121,7 @@ jobs:
fi

- name: Checkout repository [libbitcoin-system]
id: checkout-libbitcoin-system
continue-on-error: true
uses: actions/checkout@v6
with:
Expand All @@ -123,13 +130,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
Expand Down Expand Up @@ -235,6 +252,8 @@ jobs:
if-no-files-found: warn

cmake:
if: github.event_name != 'pull_request' || github.event.action != 'closed'

strategy:
fail-fast: false

Expand Down Expand Up @@ -316,6 +335,7 @@ jobs:
fi

- name: Checkout repository [libbitcoin-system]
id: checkout-libbitcoin-system
continue-on-error: true
uses: actions/checkout@v6
with:
Expand All @@ -324,13 +344,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
Expand Down Expand Up @@ -436,6 +466,8 @@ jobs:
if-no-files-found: warn

presets:
if: github.event_name != 'pull_request' || github.event.action != 'closed'

strategy:
fail-fast: false

Expand Down Expand Up @@ -480,6 +512,7 @@ jobs:
fi

- name: Checkout repository [libbitcoin-system]
id: checkout-libbitcoin-system
continue-on-error: true
uses: actions/checkout@v6
with:
Expand All @@ -488,13 +521,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
Expand Down Expand Up @@ -595,6 +638,8 @@ jobs:
if-no-files-found: warn

msvc:
if: github.event_name != 'pull_request' || github.event.action != 'closed'

strategy:
fail-fast: false

Expand Down Expand Up @@ -631,6 +676,7 @@ jobs:
msbuild-architecture: x64

- name: Checkout repository [libbitcoin-system]
id: checkout-libbitcoin-system
continue-on-error: true
uses: actions/checkout@v6
with:
Expand All @@ -639,7 +685,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
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
# python bytecode
*.pyc

# store
*.bin
*.head
*.data

# gnu
.deps
Makefile
Expand Down
Loading