Skip to content

Commit 70103cd

Browse files
committed
ci: add a re-run manual workflow
1 parent 183a64f commit 70103cd

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

.github/workflows/re-run.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: merge check
2+
3+
on:
4+
workflow_dispatch: # Must be run manually
5+
inputs:
6+
pr_number:
7+
description: 'Pull request number to test'
8+
required: true
9+
type: string
10+
11+
jobs:
12+
check:
13+
name: Check mergeability
14+
runs-on: ubuntu-latest
15+
env:
16+
CCACHE_DIR: /home/runner/.ccache
17+
18+
steps:
19+
- name: Checkout PR merge commit
20+
uses: actions/checkout@v5
21+
with:
22+
ref: refs/pull/${{ inputs.pr_number }}/merge
23+
fetch-depth: 1
24+
25+
- name: Create ccache dir
26+
run: |
27+
mkdir -p ${{ env.CCACHE_DIR }}
28+
29+
- name: Restore ccache
30+
uses: actions/cache@v3
31+
with:
32+
path: ${{ env.CCACHE_DIR }}
33+
key: ccache-${{ runner.os }}-${{ github.sha }}
34+
restore-keys: |
35+
ccache-${{ runner.os }}-
36+
37+
- uses: cachix/install-nix-action@v31
38+
with:
39+
nix_path: nixpkgs=channel:nixos-25.05
40+
41+
- name: Set Up Cachix
42+
uses: cachix/cachix-action@v15
43+
with:
44+
name: bitcoin-core
45+
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
46+
47+
- name: Build bitcoind with ccache
48+
run: |
49+
nix develop ci/ --command bash -c "
50+
cmake -B build \
51+
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
52+
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
53+
-DCMAKE_BUILD_TYPE=Release \
54+
-DBUILD_DAEMON=ON \
55+
-DBUILD_BITCOIN_BIN=OFF \
56+
-DBUILD_CLI=OFF \
57+
-DBUILD_TX=OFF \
58+
-DBUILD_UTIL=OFF \
59+
-DBUILD_WALLET_TOOL=OFF \
60+
-DBUILD_TESTS=OFF \
61+
-DBUILD_BENCH=OFF \
62+
-DENABLE_WALLET=OFF \
63+
-DENABLE_EXTERNAL_SIGNER=OFF
64+
cmake --build build --target bitcoind
65+
"

0 commit comments

Comments
 (0)