|
| 1 | +name: SlowEst |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + - release-* |
| 8 | + tags: |
| 9 | + # YYYYMMDD |
| 10 | + - "20[0-9][0-9][0-1][0-9][0-3][0-9]*" |
| 11 | + schedule: |
| 12 | + - cron: "0 0 * * 1" |
| 13 | + pull_request: |
| 14 | + workflow_dispatch: |
| 15 | + |
| 16 | +concurrency: |
| 17 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 18 | + cancel-in-progress: ${{ !contains(github.ref, 'main')}} |
| 19 | + |
| 20 | +env: |
| 21 | + RUSTFLAGS: '--cfg async_executor_impl="async-std" --cfg async_channel_impl="async-std"' |
| 22 | + RUST_LOG: info,libp2p=off,node=error |
| 23 | + |
| 24 | +jobs: |
| 25 | + slowest: |
| 26 | + runs-on: ubuntu-latest |
| 27 | + steps: |
| 28 | + - name: Fix submodule permissions check |
| 29 | + run: | |
| 30 | + git config --global --add safe.directory '*' |
| 31 | +
|
| 32 | + - name: Install Foundry |
| 33 | + uses: foundry-rs/foundry-toolchain@v1 |
| 34 | + with: |
| 35 | + version: nightly |
| 36 | + |
| 37 | + - uses: taiki-e/install-action@nextest |
| 38 | + |
| 39 | + - name: Checkout Repository |
| 40 | + uses: actions/checkout@v4 |
| 41 | + with: |
| 42 | + submodules: recursive |
| 43 | + |
| 44 | + - name: Enable Rust Caching |
| 45 | + uses: Swatinem/rust-cache@v2 |
| 46 | + |
| 47 | + - name: Build |
| 48 | + # Build test binary with `testing` feature, which requires `hotshot_example` config |
| 49 | + run: | |
| 50 | + export RUSTFLAGS="$RUSTFLAGS --cfg hotshot_example" |
| 51 | + export PATH="$PWD/target/release:$PATH" |
| 52 | + cargo build --locked --bin diff-test --release |
| 53 | + cargo nextest run --locked --release --workspace --all-features --no-run |
| 54 | + timeout-minutes: 90 |
| 55 | + |
| 56 | + - name: SlowEst |
| 57 | + env: |
| 58 | + CARGO_TERM_COLOR: always |
| 59 | + # Build test binary with `testing` feature, which requires `hotshot_example` config |
| 60 | + run: | |
| 61 | + export RUSTFLAGS="$RUSTFLAGS --cfg hotshot_example" |
| 62 | + export PATH="$PWD/target/release:$PATH" |
| 63 | + cargo nextest run --locked --release --workspace --all-features --verbose -E 'test(slow_)' |
| 64 | + timeout-minutes: 25 |
0 commit comments