Skip to content

add AGENTS.md + cross-repo.sh #2654

add AGENTS.md + cross-repo.sh

add AGENTS.md + cross-repo.sh #2654

Workflow file for this run

name: Lockfiles
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
CARGO_TARGET_DIR: ${{ github.workspace }}/target
steps:
- uses: actions/checkout@v4
- name: Install capnp dependencies
run: sudo apt-get install -y capnproto libcapnp-dev
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache Rust build
uses: Swatinem/rust-cache@v2
with:
cache-bin: "false"
# Hash every Cargo workspace without registering the shared target more than once.
key: cargo-inputs-${{ hashFiles('**/Cargo.toml', '**/Cargo.lock') }}
workspaces: integration-tests -> ../target
- name: Build with locked dependencies
run: |
cargo build --manifest-path=stratum-apps/Cargo.toml --all-features --locked
cargo build --manifest-path=pool-apps/Cargo.toml --locked
cargo build --manifest-path=miner-apps/Cargo.toml --locked
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