Skip to content

Commit 29e1a0c

Browse files
committed
Merge #624: Fix broken stuff
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: #626 ACKs for top commit: apoelstra: ACK 567c39c Tree-SHA512: f60a95e1c840e265dba1d10d2e87b970f1ebc5f01514ef9edaaf0475d833dbce15b8e715a6c53052786036b1dbbba73a2be0e470afd0d37320f540081c51c8e8
2 parents 8e48e15 + 567c39c commit 29e1a0c

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

.github/workflows/rust.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,13 @@ jobs:
105105
WASM:
106106
name: WASM
107107
runs-on: ubuntu-latest
108-
strategy:
109-
matrix:
110-
toolchain: [stable, beta, nightly, 1.48.0]
111108
steps:
112109
- name: Checkout Crate
113110
uses: actions/checkout@v3
114111
- name: Install clang
115112
run: sudo apt-get install -y clang
116113
- name: Checkout Toolchain
117-
uses: dtolnay/rust-toolchain@${{ matrix.toolchain }}
114+
uses: dtolnay/rust-toolchain@stable
118115
- name: Running WASM tests
119116
env:
120117
DO_WASM: true

contrib/test.sh

+6-7
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,18 @@ if cargo --version | grep nightly; then
1313
NIGHTLY=true
1414
fi
1515

16+
# Pin dependencies as required if we are using MSRV toolchain.
17+
if cargo --version | grep "1\.48"; then
18+
cargo update -p wasm-bindgen-test --precise 0.3.34
19+
cargo update -p serde --precise 1.0.156
20+
fi
21+
1622
# Test if panic in C code aborts the process (either with a real panic or with SIGILL)
1723
cargo test -- --ignored --exact 'tests::test_panic_raw_ctx_should_terminate_abnormally' 2>&1 | tee /dev/stderr | grep "SIGILL\\|panicked at '\[libsecp256k1\]"
1824

1925
# Make all cargo invocations verbose
2026
export CARGO_TERM_VERBOSE=true
2127

22-
# Pin dependencies as required if we are using MSRV toolchain.
23-
if cargo --version | grep "1\.48"; then
24-
# 1.0.157 uses syn 2.0 which requires edition 2021
25-
cargo update -p serde_json --precise 1.0.99
26-
cargo update -p serde --precise 1.0.156
27-
fi
28-
2928
# Defaults / sanity checks
3029
cargo build --all
3130
cargo test --all

0 commit comments

Comments
 (0)