Skip to content

Commit 5c028a6

Browse files
authored
Merge pull request #616 from openmina/develop
Merge `develop` to `main`
2 parents cc24454 + df404b5 commit 5c028a6

File tree

218 files changed

+6580
-2611
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+6580
-2611
lines changed

.drone.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ steps:
5353
- cp /usr/local/bin/mina cli/bin/
5454

5555
- name: build
56-
image: rust:1.79-bullseye
56+
image: rust:1.80-bullseye
5757
commands:
5858
- apt-get update && apt-get install -y libssl-dev libjemalloc-dev jq protobuf-compiler
59-
- rustup update 1.79 && rustup default 1.79
59+
- rustup update 1.80 && rustup default 1.80
6060
- rustup component add rustfmt
6161
# just to be sure it builds without errors
6262
- cargo build

.github/workflows/ci.yaml

Lines changed: 38 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
5656
- name: Setup Rust
5757
run: |
58-
rustup default 1.79
58+
rustup default 1.80
5959
rustup component add rustfmt
6060
6161
- name: Setup Rust Cache
@@ -81,7 +81,7 @@ jobs:
8181
8282
- name: Setup Rust
8383
run: |
84-
rustup default 1.79
84+
rustup default 1.80
8585
rustup component add rustfmt
8686
8787
- name: Setup Rust Cache
@@ -99,32 +99,34 @@ jobs:
9999
name: bin
100100
path: target/release/openmina
101101

102-
# FIXME: re-enable once it works again https://github.com/openmina/openmina/issues/580
103-
# build_wasm:
104-
# runs-on: ubuntu-20.04
105-
# steps:
106-
# - name: Git checkout
107-
# uses: actions/checkout@v4
108-
#
109-
# - name: Setup build dependencies
110-
# run: |
111-
# sudo apt update
112-
# sudo apt install -y protobuf-compiler
113-
#
114-
# - name: Setup Rust
115-
# run: |
116-
# rustup default 1.79
117-
# rustup component add rustfmt
118-
# rustup target add wasm32-unknown-unknown
119-
#
120-
# - name: Setup Rust Cache
121-
# uses: Swatinem/rust-cache@v2
122-
# with:
123-
# prefix-key: "v0"
124-
#
125-
# - name: Release build
126-
# run: |
127-
# cargo build --release -p openmina-node-common --target wasm32-unknown-unknown --no-default-features --features p2p-webrtc
102+
build_wasm:
103+
runs-on: ubuntu-20.04
104+
steps:
105+
- name: Git checkout
106+
uses: actions/checkout@v4
107+
108+
- name: Setup build dependencies
109+
run: |
110+
sudo apt update
111+
sudo apt install -y protobuf-compiler
112+
113+
- name: Setup Rust
114+
run: |
115+
rustup default nightly
116+
rustup component add rustfmt rust-src
117+
rustup target add wasm32-unknown-unknown
118+
cargo install -f wasm-bindgen-cli
119+
120+
- name: Setup Rust Cache
121+
uses: Swatinem/rust-cache@v2
122+
with:
123+
prefix-key: "v0"
124+
125+
- name: Release build
126+
run: |
127+
cd node/web
128+
cargo +nightly build --release --target wasm32-unknown-unknown
129+
wasm-bindgen --keep-debug --web --out-dir pkg ../../target/wasm32-unknown-unknown/release/openmina_node_web.wasm
128130
129131
build-tests:
130132
runs-on: ubuntu-20.04
@@ -139,7 +141,7 @@ jobs:
139141
140142
- name: Setup Rust
141143
run: |
142-
rustup default 1.79
144+
rustup default 1.80
143145
rustup component add rustfmt
144146
145147
- name: Setup Rust Cache
@@ -176,7 +178,7 @@ jobs:
176178
177179
- name: Setup Rust
178180
run: |
179-
rustup default 1.79
181+
rustup default 1.80
180182
rustup component add rustfmt
181183
182184
- name: Setup Rust Cache
@@ -209,7 +211,7 @@ jobs:
209211
BPF_ALIAS: /coda/0.0.1/29936104443aaf264a7f0192ac64b1c7173198c1ed404c1bcff5e562e05eb7f6-0.0.0.0
210212
strategy:
211213
matrix:
212-
test: [p2p_basic_connections, p2p_basic_incoming, p2p_basic_outgoing, p2p_pubsub]
214+
test: [p2p_basic_connections, p2p_basic_incoming, p2p_basic_outgoing, p2p_pubsub, p2p_kad]
213215
fail-fast: false
214216

215217
services:
@@ -298,9 +300,13 @@ jobs:
298300
test:
299301
- single_node
300302
- multi_node
303+
- connection_discovery_ocaml_to_rust_via_seed
304+
- connection_discovery_ocaml_to_rust
305+
- connection_discovery_rust_as_seed
306+
- connection_discovery_rust_to_ocaml_via_seed
307+
- connection_discovery_rust_to_ocaml
301308
# - webrtc_single_node
302309
# - webrtc_multi_node
303-
# - connection_discovery
304310
fail-fast: false
305311

306312
services:

.github/workflows/frontend.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
push:
44
branches: [ main, develop ]
55
pull_request:
6-
paths: [ "frontend/**", ".github/**" ]
6+
paths: [ "frontend/**", ".github/frontend.yaml" ]
77
workflow_dispatch:
88

99
concurrency:

.github/workflows/release.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Create Docker Compose Archives
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v[0-9]+.[0-9]+.[0-9]+'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
16+
- name: Create versioned directory and package files
17+
run: |
18+
release_dir="openmina-${{ github.ref_name }}-docker-compose"
19+
mkdir -p "$release_dir"
20+
cp -r docker-compose.* README.md "$release_dir/"
21+
zip -r "${release_dir}.zip" "$release_dir"
22+
tar -czvf "${release_dir}.tar.gz" "$release_dir"
23+
24+
- name: Create a GitHub Release
25+
id: create_release
26+
uses: actions/create-release@v1
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
with:
30+
tag_name: ${{ github.ref_name }}
31+
release_name: Release ${{ github.ref_name }}
32+
draft: true
33+
prerelease: false
34+
35+
- name: Upload the zip file as a release asset
36+
uses: actions/upload-release-asset@v1
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
with:
40+
upload_url: ${{ steps.create_release.outputs.upload_url }}
41+
asset_name: "openmina-${{ github.ref_name }}-docker-compose.zip"
42+
asset_path: "openmina-${{ github.ref_name }}-docker-compose.zip"
43+
asset_content_type: application/zip
44+
45+
- name: Upload the tarball as a release asset
46+
uses: actions/upload-release-asset@v1
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
with:
50+
upload_url: ${{ steps.create_release.outputs.upload_url }}
51+
asset_name: "openmina-${{ github.ref_name }}-docker-compose.tar.gz"
52+
asset_path: "openmina-${{ github.ref_name }}-docker-compose.tar.gz"
53+
asset_content_type: application/gzip

CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.8.0] - 2024-08-30
11+
12+
### Added
13+
14+
- Webnode: Streaming ledger sync RPC.
15+
- P2P: Meshsub for gossip.
16+
- P2P: Additional tests.
17+
18+
### Fixed
19+
20+
- Mempool: Various transaction pool issues.
21+
- Poseidon hashing and witness generation when absorbing empty slices.
22+
23+
### Changed
24+
25+
- **Rust Toolchain**: Updated the minimum required Rust toolchain to version 1.80.
26+
1027
## [0.7.0] - 2024-08-02
1128

1229
### Added
@@ -192,7 +209,8 @@ First public release.
192209
- Alpha version of the node which can connect and syncup to the berkeleynet network, and keep applying new blocks to maintain consensus state and ledger up to date.
193210
- Web-based frontend for the node.
194211

195-
[Unreleased]: https://github.com/openmina/openmina/compare/v0.7.0...develop
212+
[Unreleased]: https://github.com/openmina/openmina/compare/v0.8.0...develop
213+
[0.8.0]: https://github.com/openmina/openmina/releases/tag/v0.7.0...v0.8.0
196214
[0.7.0]: https://github.com/openmina/openmina/releases/tag/v0.6.0...v0.7.0
197215
[0.6.0]: https://github.com/openmina/openmina/releases/tag/v0.5.1...v0.6.0
198216
[0.5.1]: https://github.com/openmina/openmina/releases/tag/v0.5.0...v0.5.1

0 commit comments

Comments
 (0)