Skip to content

Commit 21a5a56

Browse files
committed
feat: upgrade to zig 0.15.2
1 parent 03fa4e3 commit 21a5a56

File tree

44 files changed

+660
-622
lines changed

Some content is hidden

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

44 files changed

+660
-622
lines changed

.github/workflows/auto-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ jobs:
160160
- name: Set up Zig
161161
uses: mlugg/setup-zig@v2.0.5
162162
with:
163-
version: 0.14.1
163+
version: 0.15.2
164164

165165
- name: Set up Rust/Cargo
166166
uses: actions-rust-lang/setup-rust-toolchain@v1

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Zig
2323
uses: mlugg/setup-zig@v2.0.5
2424
with:
25-
version: 0.14.1
25+
version: 0.15.2
2626

2727
- name: Cache Zig packages
2828
uses: actions/cache@v3
@@ -86,7 +86,7 @@ jobs:
8686
- name: Set up Zig
8787
uses: mlugg/setup-zig@v2.0.5
8888
with:
89-
version: 0.14.1
89+
version: 0.15.2
9090

9191
- name: Set up Rust/Cargo
9292
uses: actions-rust-lang/setup-rust-toolchain@v1
@@ -139,7 +139,7 @@ jobs:
139139
- name: Set up Zig
140140
uses: mlugg/setup-zig@v2.0.5
141141
with:
142-
version: 0.14.1
142+
version: 0.15.2
143143

144144
- name: Set up Rust/Cargo
145145
uses: actions-rust-lang/setup-rust-toolchain@v1
@@ -194,7 +194,7 @@ jobs:
194194
- name: Set up Zig
195195
uses: mlugg/setup-zig@v2.0.5
196196
with:
197-
version: 0.14.1
197+
version: 0.15.2
198198

199199
- name: Set up Rust/Cargo
200200
uses: actions-rust-lang/setup-rust-toolchain@v1
@@ -265,7 +265,7 @@ jobs:
265265
- name: Set up Zig
266266
uses: mlugg/setup-zig@v2.0.5
267267
with:
268-
version: 0.14.1
268+
version: 0.15.2
269269

270270
- name: Set up Rust/Cargo
271271
uses: actions-rust-lang/setup-rust-toolchain@v1
@@ -304,7 +304,7 @@ jobs:
304304
- name: Set up Zig
305305
uses: mlugg/setup-zig@v2.0.5
306306
with:
307-
version: 0.14.1
307+
version: 0.15.2
308308

309309
- name: Set up Rust/Cargo
310310
uses: actions-rust-lang/setup-rust-toolchain@v1

.github/workflows/risc0.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Set up Zig
2626
uses: mlugg/setup-zig@v2.0.5
2727
with:
28-
version: 0.14.1
28+
version: 0.15.2
2929

3030
- name: Cache Zig packages
3131
uses: actions/cache@v3

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1515
ca-certificates \
1616
&& rm -rf /var/lib/apt/lists/*
1717

18-
# Install Zig 0.14.1 based on architecture
18+
# Install Zig 0.15.2 based on architecture
1919
ARG TARGETARCH
20-
RUN ZIG_VERSION="0.14.1" && \
20+
RUN ZIG_VERSION="0.15.2" && \
2121
case "$TARGETARCH" in \
2222
amd64) ZIG_ARCH="x86_64" ;; \
2323
arm64) ZIG_ARCH="aarch64" ;; \

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Beam Chain is a futuristic ZK based Ethereum Consensus Protocol first [unveiled
99
and is meant to upgrade the current Beacon Chain when ready. Zeam is its production grade implementation (wip).
1010

1111
The heart of Beam Chain is to massively scale and decentralize ethereum consensus with provable and verifiable
12-
protocol via ZK-VMs but also bundles some of the other disruptive ideas and learnings on ethereum consensus which
12+
protocol via ZK-VMs but also bundles some of the other disruptive ideas and learnings on ethereum consensus which
1313
could be a bit harder to incrementally implement on the current Beacon Chain.
1414

1515
## Beam Chain
@@ -27,11 +27,11 @@ for consideration and deployment to ethereum blockchain.
2727

2828
We are currently doing various POCs/libs development:
2929

30-
- [POC of zig run time](https://github.com/blockblaz/zeam-runtime) with various ZK-VMs.
31-
- [Snappy](https://github.com/blockblaz/zig-snappy) & [Snappy frames](https://github.com/blockblaz/snappyframesz)
32-
- [Zig <> rust libp2p interops](https://github.com/blockblaz/zig-libp2p-pocs)
33-
- [Zig SSZ!](https://github.com/blockblaz/ssz.zig)
34-
- [Hash Signatures](https://github.com/blockblaz/hash-sigz)
30+
- [POC of zig run time](https://github.com/blockblaz/zeam-runtime) with various ZK-VMs.
31+
- [Snappy](https://github.com/blockblaz/zig-snappy) & [Snappy frames](https://github.com/blockblaz/snappyframesz)
32+
- [Zig <> rust libp2p interops](https://github.com/blockblaz/zig-libp2p-pocs)
33+
- [Zig SSZ!](https://github.com/blockblaz/ssz.zig)
34+
- [Hash Signatures](https://github.com/blockblaz/hash-sigz)
3535

3636
And all of these efforts culminating in a [ZEAM POC](./resources/zeam.md) with which we hope to aid in Beam Spec
3737
research especially with state transition proving.
@@ -67,6 +67,7 @@ out for this space for annoucements on the same or reach out to us via our [comm
6767
Docker images are built in CI using `Dockerfile.prebuilt`, which packages pre-built binaries. This avoids intermittent build failures caused by a [Zig HTTP connection pool bug](https://github.com/ziglang/zig/issues/21316) when building inside Docker.
6868

6969
To build a Docker image locally:
70+
7071
```bash
7172
# Build zeam natively first
7273
zig build -Doptimize=ReleaseFast -Dgit_version="$(git rev-parse --short HEAD)"
@@ -76,6 +77,7 @@ docker build -f Dockerfile.prebuilt -t zeam:local .
7677
```
7778

7879
For publishing to a public registry, add OCI labels for better traceability:
80+
7981
```bash
8082
docker build -f Dockerfile.prebuilt \
8183
--build-arg GIT_COMMIT=$(git rev-parse HEAD) \
@@ -85,11 +87,11 @@ docker build -f Dockerfile.prebuilt \
8587

8688
#### Prerequisites
8789

88-
- Zeam requires zig version 0.14.1 to build.
89-
- Zeam requires Rust 1.85+ to be able to build the rust connections to various zkvms
90-
- Both [risc0](https://github.com/risc0/risc0) (v3.0.3) and OpenVM provers are supported:
91-
- risc0 requires the toolchain to be [installed](https://dev.risczero.com/api/zkvm/install): `rzup install r0vm 3.0.3`
92-
- OpenVM is self-contained (no external toolchain needed)
90+
- Zeam requires zig version 0.15.2 to build.
91+
- Zeam requires Rust 1.85+ to be able to build the rust connections to various zkvms
92+
- Both [risc0](https://github.com/risc0/risc0) (v3.0.3) and OpenVM provers are supported:
93+
- risc0 requires the toolchain to be [installed](https://dev.risczero.com/api/zkvm/install): `rzup install r0vm 3.0.3`
94+
- OpenVM is self-contained (no external toolchain needed)
9395

9496
#### Build
9597

@@ -124,4 +126,4 @@ Zeam supports checkpoint sync for faster initial synchronization. You can start
124126

125127
### Reporting Issues
126128

127-
Open an [issue or a bug](https://github.com/blockblaz/zeam/issues/new) or else talk to us via our [community telegram group](https://t.me/zeamETH).
129+
Open an [issue or a bug](https://github.com/blockblaz/zeam/issues/new) or else talk to us via our [community telegram group](https://t.me/zeamETH).

0 commit comments

Comments
 (0)