Skip to content

Commit

Permalink
Merge pull request #11 from bnb-chain/develop
Browse files Browse the repository at this point in the history
release: prepare for v1.0.1
  • Loading branch information
j75689 authored Oct 9, 2024
2 parents 534f4a4 + 2a8ec74 commit ca8da5d
Show file tree
Hide file tree
Showing 223 changed files with 10,197 additions and 3,908 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @danipopes @gakonst @mattsse @onbjerg @prestwich @evalir
* @danipopes @gakonst @mattsse @onbjerg @prestwich @evalir @emhane
52 changes: 35 additions & 17 deletions .github/scripts/install_test_binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# Note: intended for use only with CI (x86_64 Ubuntu, MacOS or Windows)
set -e

GETH_BUILD=${GETH_BUILD:-"1.14.0-87246f3c"}
GETH_BUILD=${GETH_BUILD:-"1.14.8-a9523b64"}
RETH_BUILD=${RETH_BUILD:-"1.0.6"}

BIN_DIR=${BIN_DIR:-"$HOME/bin"}

Expand All @@ -17,32 +18,49 @@ main() {
echo "$BIN_DIR" >> "$GITHUB_PATH"
fi

install_geth
install_geth &
install_reth &

echo ""
echo "Installed Geth:"
geth version
wait
}

# Installs geth from https://geth.ethereum.org/downloads
install_geth() {
case "$PLATFORM" in
linux|darwin)
name="geth-$PLATFORM-amd64-$GETH_BUILD"
curl -s "https://gethstore.blob.core.windows.net/builds/$name.tar.gz" | tar -xzf -
mv -f "$name/geth" ./
rm -rf "$name"
linux)
NAME="geth-$PLATFORM-amd64-$GETH_BUILD"
curl -sL "https://gethstore.blob.core.windows.net/builds/$NAME.tar.gz" | tar -xzf -
mv -f "$NAME/geth" ./
rm -rf "$NAME"
chmod +x geth
;;
*)
name="geth-windows-amd64-$GETH_BUILD"
zip="$name.zip"
curl -so "$zip" "https://gethstore.blob.core.windows.net/builds/$zip"
unzip "$zip"
mv -f "$name/geth.exe" ./
rm -rf "$name" "$zip"
NAME="geth-windows-amd64-$GETH_BUILD"
curl -so $NAME.zip "https://gethstore.blob.core.windows.net/builds/$NAME.zip"
unzip $NAME.zip
mv -f "$NAME/geth.exe" ./
rm -rf "$NAME" "$NAME.zip"
;;
esac

echo ""
echo "Installed Geth:"
geth version
}

# Install reth from https://github.com/paradigmxyz/reth/releases
install_reth() {
case "$PLATFORM" in
linux)
NAME="reth-v$RETH_BUILD-x86_64-unknown-linux-gnu"
curl -sL "https://github.com/paradigmxyz/reth/releases/download/v$RETH_BUILD/$NAME.tar.gz" | tar -xzf -
chmod +x reth

echo ""
echo "Installed Reth:"
reth --version
;;
esac
}

main
main
28 changes: 15 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,17 @@ jobs:
rust:
- "stable"
- "nightly"
- "1.76" # MSRV
- "1.79" # MSRV
flags:
# No features
- "--no-default-features"
# Default features
- ""
# All features
- "--all-features"
exclude:
# All features on MSRV
- rust: "1.76" # MSRV
- rust: "1.79" # MSRV
flags: "--all-features"
steps:
- uses: actions/checkout@v4
Expand All @@ -51,14 +53,14 @@ jobs:
cache-on-failure: true
# Only run tests on latest stable and above
- name: Install cargo-nextest
if: ${{ matrix.rust != '1.76' }} # MSRV
if: ${{ matrix.rust != '1.79' }} # MSRV
uses: taiki-e/install-action@nextest
- name: build
if: ${{ matrix.rust == '1.76' }} # MSRV
if: ${{ matrix.rust == '1.79' }} # MSRV
run: cargo build --workspace ${{ matrix.flags }}
- name: test
shell: bash
if: ${{ matrix.rust != '1.76' }} # MSRV
if: ${{ matrix.rust != '1.79' }} # MSRV
run: cargo nextest run --workspace ${{ matrix.flags }}

doctest:
Expand Down Expand Up @@ -125,33 +127,33 @@ jobs:
- name: build ledger
run: cargo build -p alloy-signer-ledger --features browser --target wasm32-wasip1

no-std:
feature-checks:
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: check
run: ./scripts/check_no_std.sh
- name: cargo hack
run: cargo hack check --feature-powerset --depth 1

feature-checks:
check-no-std:
name: check no_std ${{ matrix.features }}
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: riscv32imac-unknown-none-elf
- uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: cargo hack
run: cargo hack check --feature-powerset --depth 1
- run: ./scripts/check_no_std.sh

clippy:
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit ca8da5d

Please sign in to comment.