chore: re-enable no_std CI checks (#9716)

This commit is contained in:
Dan Cline
2024-07-22 17:14:02 -04:00
committed by GitHub
parent 635bd90b1d
commit 3849de96a5
2 changed files with 13 additions and 11 deletions

View File

@ -3,21 +3,23 @@ set -eo pipefail
# TODO
no_std_packages=(
# reth-codecs
# reth-consensus
# The following were confirmed not working in the past, but could be enabled if issues have been resolved
# reth-db
# reth-errors
# reth-ethereum-forks
# reth-primitives
# reth-revm
# reth-evm
# reth-evm-ethereum
# reth-network-peers
# reth-primitives
# reth-primitives-traits
# reth-revm
# reth-consensus
# the following are confirmed working
reth-errors
reth-ethereum-forks
reth-network-peers
reth-primitives-traits
reth-codecs
)
for package in "${no_std_packages[@]}"; do
cmd="cargo +stable build -p $package --target riscv32imac-unknown-none-elf --no-default-features"
cmd="cargo +stable build -p $package --target wasm32-wasip1 --no-default-features"
if [ -n "$CI" ]; then
echo "::group::$cmd"

View File

@ -52,7 +52,7 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
target: riscv32imac-unknown-none-elf
target: wasm32-wasip1
- uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2
with:
@ -168,7 +168,7 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
- name: Ensure no arbitrary or proptest dependency on default build
run: cargo tree --package reth -e=features,no-dev | grep -Eq "arbitrary|proptest" && exit 1 || exit 0
lint-success:
name: lint success
runs-on: ubuntu-latest