Skip to content
Open
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
8 changes: 8 additions & 0 deletions .github/workflows/build-reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ jobs:

- name: Setup build dependencies
uses: ./.github/actions/setup-build-deps
with:
include-sqlite: true

- name: Use shared OCaml setting up steps
uses: ./.github/actions/setup-ocaml
Expand All @@ -155,8 +157,14 @@ jobs:
toolchain: 1.84
cache-prefix: build-${{ inputs.os }}-${{ inputs.cache-prefix }}v0

- name: Setup SQLite database for SQLx
run: |
sqlite3 /tmp/heartbeats.db < tools/heartbeats-processor/schema.sql

- name: Build benchmarks
run: make build-benches
env:
DATABASE_URL: "sqlite:///tmp/heartbeats.db"

build-wasm:
if: ${{ inputs.build-wasm }}
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,33 @@ jobs:
toolchain: [1.84]
steps:
- uses: actions/checkout@v5

- name: Setup build dependencies
uses: ./.github/actions/setup-build-deps
with:
include-sqlite: true

- name: Use shared OCaml setting up steps
uses: ./.github/actions/setup-ocaml
with:
ocaml_version: ${{ matrix.ocaml_version }}

- name: Setup SQLite database for SQLx
run: |
sqlite3 /tmp/heartbeats.db < tools/heartbeats-processor/schema.sql

- name: Setup Rust
uses: ./.github/actions/setup-rust
with:
toolchain: ${{ matrix.toolchain }}
components: clippy, rustfmt
cache-prefix: lint-${{ matrix.toolchain }}-v0

- name: Run make check
run: make check
env:
DATABASE_URL: "sqlite:///tmp/heartbeats.db"

- name: Run make lint
run: make lint
env:
Expand All @@ -59,18 +65,22 @@ jobs:
ocaml_version: [4.14.2]
steps:
- uses: actions/checkout@v5

- name: Setup build dependencies
uses: ./.github/actions/setup-build-deps

- name: Use shared OCaml setting up steps
uses: ./.github/actions/setup-ocaml
with:
ocaml_version: ${{ matrix.ocaml_version }}

- name: Setup Rust
uses: ./.github/actions/setup-rust
with:
toolchain: ${{ matrix.toolchain }}
components: clippy, rustfmt
cache-prefix: lint-tx-fuzzing-${{ matrix.toolchain }}-v0

- name: Run transaction Fuzzing check
run: make check-tx-fuzzing

Expand All @@ -83,10 +93,12 @@ jobs:
os: [ubuntu-24.04]
steps:
- uses: actions/checkout@v5

- name: Install shellcheck
run: |
sudo apt update || true
sudo apt install -y shellcheck || true

- name: Run shellcheck
run: make lint-bash

Expand All @@ -99,10 +111,12 @@ jobs:
os: [ubuntu-24.04]
steps:
- uses: actions/checkout@v5

- name: Install hadolint
run: |
wget -O /tmp/hadolint https://github.com/hadolint/hadolint/releases/latest/download/hadolint-Linux-x86_64
chmod +x /tmp/hadolint
sudo mv /tmp/hadolint /usr/local/bin/hadolint

- name: Run hadolint
run: make lint-dockerfiles
35 changes: 35 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,41 @@ jobs:
- name: Build WebAssembly node
run: make build-wasm

build-benches:
needs: [build]
timeout-minutes: 60
runs-on: ubuntu-22.04
env:
RUSTFLAGS: "-C overflow-checks=off -C debug-assertions=off ${{ inputs.rustflags }}"
steps:
- name: Git checkout
uses: actions/checkout@v5

- name: Setup build dependencies
uses: ./.github/actions/setup-build-deps
with:
include-sqlite: true

- name: Use shared OCaml setting up steps
uses: ./.github/actions/setup-ocaml
with:
ocaml_version: ${{ env.OCAML_VERSION }}

- name: Setup Rust
uses: ./.github/actions/setup-rust
with:
toolchain: 1.84
cache-prefix: build-${{ inputs.os }}-${{ inputs.cache-prefix }}v0

- name: Setup SQLite database for SQLx
run: |
sqlite3 /tmp/heartbeats.db < tools/heartbeats-processor/schema.sql

- name: Build benchmarks
run: make build-benches
env:
DATABASE_URL: "sqlite:///tmp/heartbeats.db"

p2p-scenario-tests:
needs: [build-tests, build-tests-webrtc]
runs-on: ubuntu-24.04
Expand Down
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
reusing build caches for efficiency
([#1539](https://github.com/o1-labs/mina-rust/pull/1539))
- **Ledger**: document, clean and add tests for the crate `mina-tree`
([#1531](https://github.com/o1-labs/mina-rust/pull/1531)).
([#1531](https://github.com/o1-labs/mina-rust/pull/1531).
- **GraphQL**: fixed parsing when neither signature nor proof is given.
See issue [#1464](https://github.com/o1-labs/mina-rust/issues/1464).
Fixed in [#1546](https://github.com/o1-labs/mina-rust/pull/1546/)
([#1546](https://github.com/o1-labs/mina-rust/pull/1546))
- **CI**: build benches for each PR with the workflow `tests`, and fix the step
in the workflow `build` by adding the missing SQLx/SQLite setup
([#1548](https://github.com/o1-labs/mina-rust/pull/1548))

## v0.17.0

Expand Down
Loading