Skip to content
Merged
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
1 change: 1 addition & 0 deletions .github/workflows/build-macos-13.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ jobs:
os: macos-13
cache-prefix: macos-13-
build-wasm: true
rustflags: "-C link-args=-Wl,-undefined,dynamic_lookup"
1 change: 1 addition & 0 deletions .github/workflows/build-macos-14.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ jobs:
os: macos-14
cache-prefix: macos-14-
build-wasm: true
rustflags: "-C link-args=-Wl,-undefined,dynamic_lookup"
1 change: 1 addition & 0 deletions .github/workflows/build-macos-15.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ jobs:
os: macos-15
cache-prefix: macos-15-
build-wasm: true
rustflags: "-C link-args=-Wl,-undefined,dynamic_lookup"
1 change: 1 addition & 0 deletions .github/workflows/build-macos-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ jobs:
os: macos-latest
cache-prefix: macos-latest-
build-wasm: true
rustflags: "-C link-args=-Wl,-undefined,dynamic_lookup"
15 changes: 13 additions & 2 deletions .github/workflows/build-reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,25 @@ on:
type: boolean
default: false
description: "Whether to build WASM targets"
rustflags:
required: false
type: string
default: ""
description: "Additional RUSTFLAGS to append (e.g., macOS-specific linker flags)"

env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
MINA_PANIC_ON_BUG: true
CARGO_INCREMENTAL: 1
RUSTFLAGS: "-C overflow-checks=off -C debug-assertions=off -C link-args=-Wl,-undefined,dynamic_lookup"
RUSTFLAGS: "-C overflow-checks=off -C debug-assertions=off"

jobs:
build:
timeout-minutes: 60
runs-on: ${{ inputs.os }}
env:
RUSTFLAGS: "-C overflow-checks=off -C debug-assertions=off ${{ inputs.rustflags }}"
steps:
- name: Git checkout
uses: actions/checkout@v5
Expand Down Expand Up @@ -75,6 +82,8 @@ jobs:
build-tests:
timeout-minutes: 60
runs-on: ${{ inputs.os }}
env:
RUSTFLAGS: "-C overflow-checks=off -C debug-assertions=off ${{ inputs.rustflags }}"
steps:
- name: Git checkout
uses: actions/checkout@v5
Expand All @@ -99,6 +108,8 @@ jobs:
build-tests-webrtc:
timeout-minutes: 60
runs-on: ${{ inputs.os }}
env:
RUSTFLAGS: "-C overflow-checks=off -C debug-assertions=off ${{ inputs.rustflags }}"
steps:
- name: Git checkout
uses: actions/checkout@v5
Expand Down Expand Up @@ -144,4 +155,4 @@ jobs:
- name: Release build
run: make build-wasm
env:
RUSTFLAGS: ""
RUSTFLAGS: ""
23 changes: 22 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:
RUST_BACKTRACE: full
MINA_PANIC_ON_BUG: true
CARGO_INCREMENTAL: 1
RUSTFLAGS: "-C overflow-checks=off -C debug-assertions=off -C link-args=-Wl,-undefined,dynamic_lookup"
RUSTFLAGS: "-C overflow-checks=off -C debug-assertions=off"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down Expand Up @@ -284,6 +284,27 @@ jobs:
path: target/release/tests
retention-days: 7

build-wasm:
timeout-minutes: 60
runs-on: ubuntu-22.04
steps:
- name: Git checkout
uses: actions/checkout@v5

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

- name: Setup Rust
uses: ./.github/actions/setup-rust
with:
toolchain: nightly
cache-prefix: build-wasm-v0

- name: Setup wasm tooling
run: make setup-wasm

- name: Build WebAssembly node
run: make build-wasm

p2p-scenario-tests:
needs: [build-tests, build-tests-webrtc]
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
([#1513](https://github.com/o1-labs/mina-rust/pull/1513))
- **scan_state**: refactorize `transaction_logic.rs` in smaller modules
([#1515](https://github.com/o1-labs/mina-rust/pull/1515))
- **CI/tests**: run the step `build-wasm` for each push and PR to `develop`
([#1497](https://github.com/o1-labs/mina-rust/pull/1497))

## v0.17.0

Expand Down
Loading