Skip to content

Commit

Permalink
Merge rust-bitcoin#624: Fix broken stuff
Browse files Browse the repository at this point in the history
567c39c Revert "WIP: Add toolchain matrix to job" (Tobin C. Harding)
e6643c0 CI: Pin dependencies for MSRV build ... properly (Tobin C. Harding)

Pull request description:

  Goodness me, I made a mess.

  Commit `0e0dcb7f CI: Pin dependencies required for MSRV build` is totally wrong, why did it get through CI?

  Fix broken stuff in the CI script by doing:

  - `serde_json` is not a dependency of `secp256k1`, remove the pinning
  - Put the pinning _before_ any call to `cargo`
  - Pin the transient dependency `wasm-bindgen-test`

  And then `Revert "WIP: Add toolchain matrix to job"`

  Fix: rust-bitcoin#626

ACKs for top commit:
  apoelstra:
    ACK 567c39c

Tree-SHA512: f60a95e1c840e265dba1d10d2e87b970f1ebc5f01514ef9edaaf0475d833dbce15b8e715a6c53052786036b1dbbba73a2be0e470afd0d37320f540081c51c8e8
  • Loading branch information
apoelstra committed Jul 14, 2023
2 parents 8e48e15 + 567c39c commit 29e1a0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,13 @@ jobs:
WASM:
name: WASM
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [stable, beta, nightly, 1.48.0]
steps:
- name: Checkout Crate
uses: actions/checkout@v3
- name: Install clang
run: sudo apt-get install -y clang
- name: Checkout Toolchain
uses: dtolnay/rust-toolchain@${{ matrix.toolchain }}
uses: dtolnay/rust-toolchain@stable
- name: Running WASM tests
env:
DO_WASM: true
Expand Down
13 changes: 6 additions & 7 deletions contrib/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,18 @@ if cargo --version | grep nightly; then
NIGHTLY=true
fi

# Pin dependencies as required if we are using MSRV toolchain.
if cargo --version | grep "1\.48"; then
cargo update -p wasm-bindgen-test --precise 0.3.34
cargo update -p serde --precise 1.0.156
fi

# Test if panic in C code aborts the process (either with a real panic or with SIGILL)
cargo test -- --ignored --exact 'tests::test_panic_raw_ctx_should_terminate_abnormally' 2>&1 | tee /dev/stderr | grep "SIGILL\\|panicked at '\[libsecp256k1\]"

# Make all cargo invocations verbose
export CARGO_TERM_VERBOSE=true

# Pin dependencies as required if we are using MSRV toolchain.
if cargo --version | grep "1\.48"; then
# 1.0.157 uses syn 2.0 which requires edition 2021
cargo update -p serde_json --precise 1.0.99
cargo update -p serde --precise 1.0.156
fi

# Defaults / sanity checks
cargo build --all
cargo test --all
Expand Down

0 comments on commit 29e1a0c

Please sign in to comment.