Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into alexey/remote-exex
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Jun 18, 2024
2 parents c931f74 + cc50252 commit 5a8494b
Show file tree
Hide file tree
Showing 86 changed files with 819 additions and 595 deletions.
25 changes: 25 additions & 0 deletions .github/scripts/check_no_std.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash
set -eo pipefail

# List of no_std packages
no_std_packages=(
reth-db
reth-network-peers
)

# Loop through each package and check it for no_std compliance
for package in "${no_std_packages[@]}"; do
cmd="cargo +stable check -p $package --no-default-features"

if [ -n "$CI" ]; then
echo "::group::$cmd"
else
printf "\n%s:\n %s\n" "$package" "$cmd"
fi

$cmd

if [ -n "$CI" ]; then
echo "::endgroup::"
fi
done
2 changes: 1 addition & 1 deletion .github/workflows/hive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and export reth image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
tags: ghcr.io/paradigmxyz/reth:latest
Expand Down
25 changes: 24 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,21 @@ jobs:
env:
RUSTFLAGS: -D warnings

no-std:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
target: riscv32imac-unknown-none-elf
- uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Run no_std checks
run: .github/scripts/check_no_std.sh

crate-checks:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand Down Expand Up @@ -149,7 +164,15 @@ jobs:
name: lint success
runs-on: ubuntu-latest
if: always()
needs: [clippy-binaries, clippy, crate-checks, docs, fmt, book, codespell, grafana]
needs:
- clippy-binaries
- clippy
- crate-checks
- docs
- fmt
- book
- codespell
- grafana
timeout-minutes: 30
steps:
- name: Decide whether the needed jobs succeeded or failed
Expand Down
Loading

0 comments on commit 5a8494b

Please sign in to comment.