fix: concurrent concurrent Merkle tree subtree updates #1567
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "**/*.rs" | |
- "**/Cargo.*" | |
- "gnark-prover/**" | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "**/*.rs" | |
- "**/Cargo.*" | |
- "gnark-prover/**" | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
name: rust | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
if: github.event.pull_request.draft == false | |
runs-on: buildjet-4vcpu-ubuntu-2204 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Run install script | |
shell: bash | |
run: ./scripts/install.sh | |
- name: Build workspace | |
run: | | |
source ./scripts/devenv.sh | |
echo "Rust version: $(rustc --version)" | |
cargo build --workspace --all-targets | |
- name: Build @lightprotocol/programs | |
run: | | |
source ./scripts/devenv.sh | |
npx nx build @lightprotocol/programs | |
- name: Build CLI | |
run: | | |
source ./scripts/devenv.sh | |
npx nx build @lightprotocol/cli | |
- name: Test workspace | |
run: | | |
source ./scripts/devenv.sh | |
RUST_MIN_STACK=8388608 cargo test --workspace --all-targets |