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
46 changes: 31 additions & 15 deletions .github/workflows/ci-expanded.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,19 @@ concurrency:
group: ${{ github.workflow }}-${{ github.repository_owner == 'libbitcoin' && (github.event.pull_request.number || github.run_id) || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
information:
runs-on: ubuntu-latest

env:
CONCURRENCY_GROUP: ${{ github.workflow }}-${{ github.repository_owner == 'libbitcoin' && (github.event.pull_request.number || github.run_id) || github.ref }}

permissions:
actions: write

steps:
- name: state
run: |
Expand All @@ -33,6 +39,14 @@ jobs:
echo "base_ref : ${{ github.base_ref }}"
echo "head_ref : ${{ github.head_ref }}"

- name: cancel on pull_request closed
if: github.event_name == 'pull_request' && github.event.action == 'closed'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh api --method POST \
-H "Accept: application/vnd.github+json" "/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/cancel"


gnu:
if: github.event_name != 'pull_request' || github.event.action != 'closed'
Expand Down Expand Up @@ -355,7 +369,7 @@ jobs:
- name: Checkout repository [libbitcoin-system]
id: checkout-libbitcoin-system
continue-on-error: true
uses: actions/checkout@v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
path: 'libbitcoin-system'
Expand All @@ -372,7 +386,7 @@ jobs:

- name: Checkout repository [libbitcoin-database]
id: checkout-libbitcoin-database
uses: actions/checkout@v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
path: 'libbitcoin-database'
Expand Down Expand Up @@ -441,7 +455,7 @@ jobs:
shell: bash
working-directory: 'libbitcoin-database'
env:
COVERALLS_REPO_TOKEN: ${{ secrets.github_token }}
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-linux-x86_64.tar.gz
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-checksums.txt
Expand Down Expand Up @@ -475,7 +489,7 @@ jobs:

- name: Test artifact upload
if: failure()
uses: actions/upload-artifact@v7.0.1
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: testlogs
path: ${{ github.workspace }}/*.errors
Expand Down Expand Up @@ -803,7 +817,7 @@ jobs:
- name: Checkout repository [libbitcoin-system]
id: checkout-libbitcoin-system
continue-on-error: true
uses: actions/checkout@v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
path: 'libbitcoin-system'
Expand All @@ -820,7 +834,7 @@ jobs:

- name: Checkout repository [libbitcoin-database]
id: checkout-libbitcoin-database
uses: actions/checkout@v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
path: 'libbitcoin-database'
Expand Down Expand Up @@ -889,7 +903,7 @@ jobs:
shell: bash
working-directory: 'libbitcoin-database'
env:
COVERALLS_REPO_TOKEN: ${{ secrets.github_token }}
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-linux-x86_64.tar.gz
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-checksums.txt
Expand Down Expand Up @@ -923,7 +937,7 @@ jobs:

- name: Test artifact upload
if: failure()
uses: actions/upload-artifact@v7.0.1
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: testlogs
path: ${{ github.workspace }}/*.errors
Expand Down Expand Up @@ -1187,7 +1201,7 @@ jobs:
- name: Checkout repository [libbitcoin-system]
id: checkout-libbitcoin-system
continue-on-error: true
uses: actions/checkout@v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
path: 'libbitcoin-system'
Expand All @@ -1204,7 +1218,7 @@ jobs:

- name: Checkout repository [libbitcoin-database]
id: checkout-libbitcoin-database
uses: actions/checkout@v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
path: 'libbitcoin-database'
Expand Down Expand Up @@ -1268,7 +1282,7 @@ jobs:
shell: bash
working-directory: 'libbitcoin-database'
env:
COVERALLS_REPO_TOKEN: ${{ secrets.github_token }}
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-linux-x86_64.tar.gz
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-checksums.txt
Expand Down Expand Up @@ -1302,7 +1316,7 @@ jobs:

- name: Test artifact upload
if: failure()
uses: actions/upload-artifact@v7.0.1
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: testlogs
path: ${{ github.workspace }}/*.errors
Expand Down Expand Up @@ -1355,17 +1369,18 @@ jobs:
fi

- name: Set msbuild path
uses: microsoft/setup-msbuild@v3
uses: microsoft/setup-msbuild@30375c66a4eea26614e0d39710365f22f8b0af57 # v3
with:
msbuild-architecture: x64

- name: Checkout repository [libbitcoin-system]
id: checkout-libbitcoin-system
continue-on-error: true
uses: actions/checkout@v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
path: 'libbitcoin-system'
persist-credentials: false
ref: ${{ steps.get-branch.outputs.branch }}
repository: ${{ github.repository_owner }}/libbitcoin-system

Expand All @@ -1378,10 +1393,11 @@ jobs:

- name: Checkout repository [libbitcoin-database]
id: checkout-libbitcoin-database
uses: actions/checkout@v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
path: 'libbitcoin-database'
persist-credentials: false
repository: ${{ github.repository }}

- name: Execute build
Expand Down
48 changes: 33 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ on:
- 'test/**'
- 'tools/initchain/**'
push:
tags-ignore:
- "**"
paths:
- 'builds/cmake/**'
- 'builds/gnu/**'
Expand All @@ -33,13 +35,19 @@ concurrency:
group: ${{ github.workflow }}-${{ github.repository_owner == 'libbitcoin' && (github.event.pull_request.number || github.run_id) || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
information:
runs-on: ubuntu-latest

env:
CONCURRENCY_GROUP: ${{ github.workflow }}-${{ github.repository_owner == 'libbitcoin' && (github.event.pull_request.number || github.run_id) || github.ref }}

permissions:
actions: write

steps:
- name: state
run: |
Expand All @@ -52,6 +60,14 @@ jobs:
echo "base_ref : ${{ github.base_ref }}"
echo "head_ref : ${{ github.head_ref }}"

- name: cancel on pull_request closed
if: github.event_name == 'pull_request' && github.event.action == 'closed'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh api --method POST \
-H "Accept: application/vnd.github+json" "/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/cancel"


gnu:
if: github.event_name != 'pull_request' || github.event.action != 'closed'
Expand Down Expand Up @@ -134,7 +150,7 @@ jobs:
- name: Checkout repository [libbitcoin-system]
id: checkout-libbitcoin-system
continue-on-error: true
uses: actions/checkout@v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
path: 'libbitcoin-system'
Expand All @@ -151,7 +167,7 @@ jobs:

- name: Checkout repository [libbitcoin-database]
id: checkout-libbitcoin-database
uses: actions/checkout@v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
path: 'libbitcoin-database'
Expand Down Expand Up @@ -220,7 +236,7 @@ jobs:
shell: bash
working-directory: 'libbitcoin-database'
env:
COVERALLS_REPO_TOKEN: ${{ secrets.github_token }}
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-linux-x86_64.tar.gz
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-checksums.txt
Expand Down Expand Up @@ -254,7 +270,7 @@ jobs:

- name: Test artifact upload
if: failure()
uses: actions/upload-artifact@v7.0.1
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: testlogs
path: ${{ github.workspace }}/*.errors
Expand Down Expand Up @@ -342,7 +358,7 @@ jobs:
- name: Checkout repository [libbitcoin-system]
id: checkout-libbitcoin-system
continue-on-error: true
uses: actions/checkout@v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
path: 'libbitcoin-system'
Expand All @@ -359,7 +375,7 @@ jobs:

- name: Checkout repository [libbitcoin-database]
id: checkout-libbitcoin-database
uses: actions/checkout@v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
path: 'libbitcoin-database'
Expand Down Expand Up @@ -428,7 +444,7 @@ jobs:
shell: bash
working-directory: 'libbitcoin-database'
env:
COVERALLS_REPO_TOKEN: ${{ secrets.github_token }}
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-linux-x86_64.tar.gz
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-checksums.txt
Expand Down Expand Up @@ -462,7 +478,7 @@ jobs:

- name: Test artifact upload
if: failure()
uses: actions/upload-artifact@v7.0.1
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: testlogs
path: ${{ github.workspace }}/*.errors
Expand Down Expand Up @@ -516,7 +532,7 @@ jobs:
- name: Checkout repository [libbitcoin-system]
id: checkout-libbitcoin-system
continue-on-error: true
uses: actions/checkout@v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
path: 'libbitcoin-system'
Expand All @@ -533,7 +549,7 @@ jobs:

- name: Checkout repository [libbitcoin-database]
id: checkout-libbitcoin-database
uses: actions/checkout@v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
path: 'libbitcoin-database'
Expand Down Expand Up @@ -597,7 +613,7 @@ jobs:
shell: bash
working-directory: 'libbitcoin-database'
env:
COVERALLS_REPO_TOKEN: ${{ secrets.github_token }}
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-linux-x86_64.tar.gz
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-checksums.txt
Expand Down Expand Up @@ -631,7 +647,7 @@ jobs:

- name: Test artifact upload
if: failure()
uses: actions/upload-artifact@v7.0.1
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: testlogs
path: ${{ github.workspace }}/*.errors
Expand Down Expand Up @@ -672,17 +688,18 @@ jobs:
fi

- name: Set msbuild path
uses: microsoft/setup-msbuild@v3
uses: microsoft/setup-msbuild@30375c66a4eea26614e0d39710365f22f8b0af57 # v3
with:
msbuild-architecture: x64

- name: Checkout repository [libbitcoin-system]
id: checkout-libbitcoin-system
continue-on-error: true
uses: actions/checkout@v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
path: 'libbitcoin-system'
persist-credentials: false
ref: ${{ steps.get-branch.outputs.branch }}
repository: ${{ github.repository_owner }}/libbitcoin-system

Expand All @@ -695,10 +712,11 @@ jobs:

- name: Checkout repository [libbitcoin-database]
id: checkout-libbitcoin-database
uses: actions/checkout@v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
path: 'libbitcoin-database'
persist-credentials: false
repository: ${{ github.repository }}

- name: Execute build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/version-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v6
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch || 'master' }}
Expand Down