mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
ref: https://github.com/paradigmxyz/reth/actions/runs/5486255403/jobs/9996118421 ref: https://github.com/foundry-rs/foundry/issues/3827 Compiling serde v1.0.164 error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /target/maxperf/deps/libserde_derive-6e9709c79bb5c7fa.so) --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.164/src/lib.rs:340:1 | 340 | extern crate serde_derive; | ^^^^^^^^^^^^^^^^^^^^^^^^^^
90 lines
2.8 KiB
YAML
90 lines
2.8 KiB
YAML
# Runs a series of sanity checks for crate consumers.
|
|
#
|
|
# Currently the only check is that the version constraints in each `Cargo.toml` do not lead to a breaking dependency.
|
|
on:
|
|
workflow_dispatch: {}
|
|
# Once per day at 00:00 UTC
|
|
schedule:
|
|
- cron: '0 0 * * *'
|
|
|
|
env:
|
|
RUSTFLAGS: -D warnings
|
|
CARGO_TERM_COLOR: always
|
|
GETH_BUILD: 1.12.0-e501b3b0
|
|
|
|
name: sanity
|
|
jobs:
|
|
dep-version-constraints:
|
|
runs-on: ubuntu-20.04
|
|
name: dep version constraints test (partition ${{ matrix.partition }}/${{ strategy.job-total }})
|
|
strategy:
|
|
matrix:
|
|
partition: [1, 2, 3]
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v3
|
|
- name: Install toolchain
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: llvm-tools-preview
|
|
- uses: Swatinem/rust-cache@v2
|
|
with:
|
|
cache-on-failure: true
|
|
|
|
- name: Install geth
|
|
run: |
|
|
mkdir -p "$HOME/bin"
|
|
wget -q https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-$GETH_BUILD.tar.gz
|
|
tar -xvf geth-linux-amd64-$GETH_BUILD.tar.gz
|
|
mv geth-linux-amd64-$GETH_BUILD/geth $HOME/bin/geth
|
|
chmod u+x "$HOME/bin/geth"
|
|
export PATH=$HOME/bin:$PATH
|
|
echo $HOME/bin >> $GITHUB_PATH
|
|
geth version
|
|
|
|
- name: Install latest nextest release
|
|
uses: taiki-e/install-action@nextest
|
|
|
|
- name: Update packages
|
|
run: cargo update
|
|
|
|
- name: Run tests
|
|
run: |
|
|
cargo nextest run --locked --workspace --all-features \
|
|
--partition hash:${{ matrix.partition }}/${{ strategy.job-total }} \
|
|
-E 'kind(lib)' -E 'kind(bin)' -E 'kind(proc-macro)'
|
|
|
|
- uses: JasonEtco/create-an-issue@v2
|
|
if: ${{ failure() }}
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
WORKFLOW_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
with:
|
|
update_existing: true
|
|
filename: .github/SANITY_DEPS_ISSUE_TEMPLATE.md
|
|
|
|
unused-deps:
|
|
runs-on: ubuntu-20.04
|
|
name: unused dependencies
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v3
|
|
- name: Install toolchain
|
|
uses: dtolnay/rust-toolchain@nightly
|
|
|
|
- name: Install cargo-udeps
|
|
run: cargo install cargo-udeps --locked
|
|
|
|
- name: Check for unused dependencies
|
|
run: cargo +nightly udeps --all-features --all-targets
|
|
|
|
- uses: JasonEtco/create-an-issue@v2
|
|
if: ${{ failure() }}
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
WORKFLOW_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
with:
|
|
update_existing: true
|
|
filename: .github/SANITY_UNUSED_DEPS_ISSUE_TEMPLATE.md
|
|
|