Skip to content
Closed
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
22 changes: 22 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 2
updates:
- package-ecosystem: "cargo"
directory: "/pool-apps"
schedule:
interval: "daily"
allow:
- dependency-name: "stratum-core"

- package-ecosystem: "cargo"
directory: "/miner-apps"
schedule:
interval: "daily"
allow:
- dependency-name: "stratum-core"

- package-ecosystem: "cargo"
directory: "/integration-tests"
schedule:
interval: "daily"
allow:
- dependency-name: "stratum-core"
43 changes: 1 addition & 42 deletions .github/workflows/lockfiles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,45 +30,4 @@ jobs:
cargo build --manifest-path=integration-tests/Cargo.toml --locked

# while bitcoin-core-sv2 crate is still a lib crate, no need to lock it so we skip it here
# whenever we implement a binary executable for bitcoin-core-sv2, we will need to cover it here

stratum-freshness:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Get latest stratum commit on main
id: stratum
run: |
LATEST=$(git ls-remote https://github.com/stratum-mining/stratum refs/heads/main | cut -f1)
echo "latest_sha=$LATEST" >> "$GITHUB_OUTPUT"
echo "Latest stratum main commit: $LATEST"

- name: Check lockfiles pin the latest stratum-core
run: |
LATEST="${{ steps.stratum.outputs.latest_sha }}"
FAILED=0

for lockfile in pool-apps/Cargo.lock miner-apps/Cargo.lock integration-tests/Cargo.lock; do
PINNED=$(grep -oP 'git\+https://github\.com/stratum-mining/stratum\?branch=main#\K[0-9a-f]+' "$lockfile" | head -1)

if [ -z "$PINNED" ]; then
echo "WARNING: No stratum-core git pin found in $lockfile"
continue
fi

if [ "$PINNED" != "$LATEST" ]; then
echo "FAIL: $lockfile is stale (pinned=$PINNED, latest=$LATEST)"
FAILED=1
else
echo "OK: $lockfile is up to date ($PINNED)"
fi
done

if [ "$FAILED" -eq 1 ]; then
echo ""
echo "Lockfiles are not pinned to the latest stratum-core commit."
echo "Run 'cargo update -p stratum-core' in each workspace to update them."
exit 1
fi
# whenever we implement a binary executable for bitcoin-core-sv2, we will need to cover it here
Loading