File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+ - package-ecosystem : " cargo"
4+ directory : " /pool-apps"
5+ schedule :
6+ interval : " daily"
7+ allow :
8+ - dependency-name : " stratum-core"
9+
10+ - package-ecosystem : " cargo"
11+ directory : " /miner-apps"
12+ schedule :
13+ interval : " daily"
14+ allow :
15+ - dependency-name : " stratum-core"
16+
17+ - package-ecosystem : " cargo"
18+ directory : " /integration-tests"
19+ schedule :
20+ interval : " daily"
21+ allow :
22+ - dependency-name : " stratum-core"
Original file line number Diff line number Diff line change 3030 cargo build --manifest-path=integration-tests/Cargo.toml --locked
3131
3232 # while bitcoin-core-sv2 crate is still a lib crate, no need to lock it so we skip it here
33- # whenever we implement a binary executable for bitcoin-core-sv2, we will need to cover it here
34-
35- stratum-freshness :
36- runs-on : ubuntu-latest
37-
38- steps :
39- - uses : actions/checkout@v4
40-
41- - name : Get latest stratum commit on main
42- id : stratum
43- run : |
44- LATEST=$(git ls-remote https://github.com/stratum-mining/stratum refs/heads/main | cut -f1)
45- echo "latest_sha=$LATEST" >> "$GITHUB_OUTPUT"
46- echo "Latest stratum main commit: $LATEST"
47-
48- - name : Check lockfiles pin the latest stratum-core
49- run : |
50- LATEST="${{ steps.stratum.outputs.latest_sha }}"
51- FAILED=0
52-
53- for lockfile in pool-apps/Cargo.lock miner-apps/Cargo.lock integration-tests/Cargo.lock; do
54- PINNED=$(grep -oP 'git\+https://github\.com/stratum-mining/stratum\?branch=main#\K[0-9a-f]+' "$lockfile" | head -1)
55-
56- if [ -z "$PINNED" ]; then
57- echo "WARNING: No stratum-core git pin found in $lockfile"
58- continue
59- fi
60-
61- if [ "$PINNED" != "$LATEST" ]; then
62- echo "FAIL: $lockfile is stale (pinned=$PINNED, latest=$LATEST)"
63- FAILED=1
64- else
65- echo "OK: $lockfile is up to date ($PINNED)"
66- fi
67- done
68-
69- if [ "$FAILED" -eq 1 ]; then
70- echo ""
71- echo "Lockfiles are not pinned to the latest stratum-core commit."
72- echo "Run 'cargo update -p stratum-core' in each workspace to update them."
73- exit 1
74- fi
33+ # whenever we implement a binary executable for bitcoin-core-sv2, we will need to cover it here
You can’t perform that action at this time.
0 commit comments