Skip to content

Backport rust-secp 284 and 422 #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jun 8, 2023
Merged

Backport rust-secp 284 and 422 #54

merged 13 commits into from
Jun 8, 2023

Conversation

apoelstra
Copy link
Contributor

@apoelstra apoelstra commented Jul 25, 2022

Fixes #47

(Actually I believe 47 is already fixed, but this re-enables the test in CI so we can be sure.)

Easiest way to review this is probably to add rust-secp as a remote and then use range-diff to see how my versions of the commits change from those in the PR. I have provided commit IDs in my commit messages.

fanatid and others added 9 commits June 8, 2023 02:01
In line with the `Tests` job and for the fact that this job does stuff
with the nightly toolchain other than bench.

Re-name nightly CI job from `bench_nightly`to `Nightly`.

Backport of a8a679ed7dbfa4871270de779aee78b3cdaeebd6:
  rust-bitcoin/rust-secp256k1#284 (2/9)
We use a matrix with a single element, this is unnecessary.

Backport of 96685c571da4f3c64d178e0f0d3a02ce99de9136:
  rust-bitcoin/rust-secp256k1#284 (3/9)
The address sanitizer job is silently failing at the moment because we
do not install clang.

Install clang so the address sanitizer job can run. Do not fix the
silent failure, that will be done later on.

Backport of f7bc7d3728326e6de0d2462dfba9705b93a1f55e:
  rust-bitcoin/rust-secp256k1#284 (4/9)
We have a separate CI job for things that require a nightly toolchain.
Building the docs requires a nightly toolchain (because of `--cfg
docsrc` flag). It makes more sense to run the docs build in the
`Nightly` job instead of hidden in the `Tests` job.

Do the docs build in the `Nightly` job instead of in the `Tests` job.

Backport of 946ac3b51ebb8191b051c8d80bd27bee1656993e:
  rust-bitcoin/rust-secp256k1#284 (5/9)
WASM is supported by Rust 1.30. We can therefore run the WASM tests on
any all the toolchains except MSRV (1.29.0). This has benefit of
catching nightly/beta issues before they get to stable.

Done as a separate CI job since it is conceptually different to the
`Tests` job.

Run WASM for nightly, beta, and stable toolchains.

Backport of 58db1b67536794b24cdc0bf8149460509a247b31:
  rust-bitcoin/rust-secp256k1#284 (6/9)
As per UNIX convention a Bash script should exit with status code 0 if
it completes successfully.

Backport of 7bec31c3a6eb43068f0b28db5f351b079751b2e2:
  rust-bitcoin/rust-secp256k1#284 (7/9)
For the test that uses `clang-9` do the sanity call using `clang-9`
instead of `clang`.

For the test that uses `clang` add a sanity call to `clang --version`.

Backport of 97dc0ea9acdc308cc2cadc11e4787d07ec9b2c79:
  rust-bitcoin/rust-secp256k1#284 (9/9)
This was added in e0a4d2c (no associated
PR) (Dec 2020).
@apoelstra apoelstra force-pushed the 2022-07--wasm-fix branch from 73e15bd to 5844f8a Compare June 8, 2023 02:03
@apoelstra
Copy link
Contributor Author

cc @sanket1729 let's get this in

Copy link
Member

@sanket1729 sanket1729 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK b0a1a69. Ignore the comment about clang-9, looks like it is not need for this secp-zkp CI

@apoelstra apoelstra merged commit 63ba343 into master Jun 8, 2023
@apoelstra apoelstra deleted the 2022-07--wasm-fix branch June 8, 2023 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wasm build fails
4 participants