Skip to content

Commit b78d26f

Browse files
feat!(api, rpc, exe, ci): BEERUS REBORN
1 parent dfae444 commit b78d26f

Some content is hidden

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

47 files changed

+1264
-4325
lines changed

.github/workflows/check.yml

+11-12
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
env:
99
RUSTFLAGS: -D warnings
10+
RUST_BACKTRACE: 1
1011

1112
concurrency:
1213
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
@@ -15,24 +16,24 @@ concurrency:
1516
jobs:
1617
test:
1718
runs-on: ubuntu-latest
19+
env:
20+
BEERUS_TEST_RUN: 1
21+
BEERUS_TEST_STARKNET_URL: ${{ secrets.STARKNET_RPC_0_6_0_MAINNET }}
1822
steps:
1923
- uses: actions/checkout@v3
2024
- uses: dtolnay/rust-toolchain@stable
2125
- uses: Swatinem/rust-cache@v2
22-
- run: rustup target add wasm32-unknown-unknown
23-
- run: cargo test --all
24-
- run: cargo check -p beerus-core --target wasm32-unknown-unknown
26+
- run: cargo test --features skip-zero-root-validation
2527

26-
test-experimental:
28+
wasm-check:
29+
if: false ## disabled until wasm effort is in progress
2730
runs-on: ubuntu-latest
28-
env:
29-
BEERUS_EXPERIMENTAL_TEST_RUN: 1
30-
BEERUS_EXPERIMENTAL_TEST_STARKNET_URL: ${{ secrets.STARKNET_RPC_0_6_0_MAINNET }}
3131
steps:
3232
- uses: actions/checkout@v3
3333
- uses: dtolnay/rust-toolchain@stable
3434
- uses: Swatinem/rust-cache@v2
35-
- run: cargo test -p beerus-experimental-api
35+
- run: rustup target add wasm32-unknown-unknown
36+
- run: cargo check --target wasm32-unknown-unknown --no-default-features
3637

3738
clippy:
3839
runs-on: ubuntu-latest
@@ -46,11 +47,9 @@ jobs:
4647
runs-on: ubuntu-latest
4748
steps:
4849
- uses: actions/checkout@v3
49-
- uses: dtolnay/rust-toolchain@nightly
50-
with:
51-
components: rustfmt
50+
- uses: dtolnay/rust-toolchain@stable
5251
- uses: Swatinem/rust-cache@v2
53-
- run: cargo +nightly fmt --all -- --check
52+
- run: cargo fmt --all -- --check
5453

5554
udeps:
5655
runs-on: ubuntu-latest

.github/workflows/release.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: release
22
on:
3-
workflow_dispatch:
43
push:
54
tags:
6-
- '*'
5+
- 'v*'
76

87
jobs:
98
release:
@@ -15,10 +14,10 @@ jobs:
1514
- os: ubuntu-latest
1615
artifact_name: beerus-linux-x86_64.tar.gz
1716
asset_name: beerus-linux-x86_64.tar.gz
18-
container: quay.io/pypa/manylinux2014_x86_64
19-
- os: macos-latest
20-
artifact_name: beerus-darwin-x86_64.tar.gz
21-
asset_name: beerus-darwin-x86_64.tar.gz
17+
## TODO: decide to keep or drop darwin support
18+
# - os: macos-latest
19+
# artifact_name: beerus-darwin-x86_64.tar.gz
20+
# asset_name: beerus-darwin-x86_64.tar.gz
2221

2322
container:
2423
image: ${{ matrix.container || '' }}

.github/workflows/rust-integration-tests-alchemy.yml

-32
This file was deleted.

.github/workflows/rust-integration-tests-chainstack.yml

-32
This file was deleted.

.github/workflows/rust-integration-tests-reddio.yml

-32
This file was deleted.

0 commit comments

Comments
 (0)