diff --git a/.github/workflows/bindings.yml b/.github/workflows/bindings.yml index 56226c4e..072190df 100644 --- a/.github/workflows/bindings.yml +++ b/.github/workflows/bindings.yml @@ -35,13 +35,8 @@ jobs: - name: Show Foundry version run: forge --version - - name: Restore dependencies cache - uses: actions/cache@v4 - with: - path: | - target - key: rust-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }} - restore-keys: rust- + - name: Rust cache + uses: Swatinem/rust-cache@v2 - name: Run rustfmt run: just bindings-fmt-check @@ -52,5 +47,11 @@ jobs: - name: Lint Bindings run: just bindings-lint + # bindings tests fork live RPCs via anvil; retry to absorb transient timeouts. - name: Run Tests - run: just bindings-test + run: | + for i in 1 2 3; do + just bindings-test && exit 0 + [ "$i" -lt 3 ] && { echo "attempt $i failed, retrying in 10s"; sleep 10; } + done + exit 1