File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change 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 : ${{ github.workspace }}/.ccache
17+
18+ steps :
19+ - name : Checkout fresh master
20+ uses : actions/checkout@v5
21+ with :
22+ ref : master
23+ fetch-depth : 1
24+
25+ - name : Merge PR into master
26+ run : |
27+ git config user.name "GitHub Actions"
28+ git config user.email "[email protected] " 29+ git fetch --depth=1 origin pull/${{ inputs.pr_number }}/head:pr-${{ inputs.pr_number }}
30+ git merge pr-${{ inputs.pr_number }} --no-ff -m "Test merge of PR #${{ inputs.pr_number }} into master"
31+
32+ - name : Install Nix
33+ uses : DeterminateSystems/nix-installer-action@main
34+ with :
35+ determinate : true
36+ extra-conf : lazy-trees = true
37+
38+ - name : Set Up Cachix
39+ uses : cachix/cachix-action@v15
40+ with :
41+ name : bitcoin-core
42+ authToken : ${{ secrets.CACHIX_AUTH_TOKEN }}
43+
44+ - name : Ccache cache
45+ uses : cirruslabs/cache@v4
46+ with :
47+ path : ${{ env.CCACHE_DIR }}
48+ key : ccache-${{ github.run_id }}
49+
50+ - name : Run `nix flake check`
51+ run : nix flake check ci/
52+
53+ - name : Build bitcoind
54+ run : |
55+ export CCACHE_DIR=${{ env.CCACHE_DIR }}
56+ nix build ci/ --option extra-sandbox-paths "${{ env.CCACHE_DIR }}"
You can’t perform that action at this time.
0 commit comments