Skip to content

Commit

Permalink
feat!(api, rpc, exe, ci): BEERUS REBORN
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-melnychuk committed Jun 18, 2024
1 parent dfae444 commit b78d26f
Show file tree
Hide file tree
Showing 47 changed files with 1,264 additions and 4,325 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

env:
RUSTFLAGS: -D warnings
RUST_BACKTRACE: 1

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -15,24 +16,24 @@ concurrency:
jobs:
test:
runs-on: ubuntu-latest
env:
BEERUS_TEST_RUN: 1
BEERUS_TEST_STARKNET_URL: ${{ secrets.STARKNET_RPC_0_6_0_MAINNET }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: rustup target add wasm32-unknown-unknown
- run: cargo test --all
- run: cargo check -p beerus-core --target wasm32-unknown-unknown
- run: cargo test --features skip-zero-root-validation

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

clippy:
runs-on: ubuntu-latest
Expand All @@ -46,11 +47,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo +nightly fmt --all -- --check
- run: cargo fmt --all -- --check

udeps:
runs-on: ubuntu-latest
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: release
on:
workflow_dispatch:
push:
tags:
- '*'
- 'v*'

jobs:
release:
Expand All @@ -15,10 +14,10 @@ jobs:
- os: ubuntu-latest
artifact_name: beerus-linux-x86_64.tar.gz
asset_name: beerus-linux-x86_64.tar.gz
container: quay.io/pypa/manylinux2014_x86_64
- os: macos-latest
artifact_name: beerus-darwin-x86_64.tar.gz
asset_name: beerus-darwin-x86_64.tar.gz
## TODO: decide to keep or drop darwin support
# - os: macos-latest
# artifact_name: beerus-darwin-x86_64.tar.gz
# asset_name: beerus-darwin-x86_64.tar.gz

container:
image: ${{ matrix.container || '' }}
Expand Down
32 changes: 0 additions & 32 deletions .github/workflows/rust-integration-tests-alchemy.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/rust-integration-tests-chainstack.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/rust-integration-tests-reddio.yml

This file was deleted.

Loading

0 comments on commit b78d26f

Please sign in to comment.