Jonas Nick
775f5e242b
Merge commits '1b13415d 374e2b54 96294c00 8d2960c8 ce765a5b b2f6712d eedd7810 b327abfc 5d8fa825 3d05c86d bcffeb14 de657c20 060e32cb 0ba2b945 48b1d939 6b9507ad 5373693e 2e6cf9ba 6ee14550 26a98992 4d7fe609 ea26b71c 65c79fe2 727bec5b 0b4640ae 199d27ce cbf3053f 49be5be9 b10ddd2b 4fd00f4b ba9cb6f3 ee7aaf21 ' into temp-merge-1395
...
- Replace fe_equal_var with fe_equal
- Use CHECK_ILLEGAL instead of CHECK/ecount
- Turn on secp256k1-zkp specific modules in CI
2023-09-20 09:38:36 +00:00
Tim Ruffing
e78c7b68eb
ci/Dockerfile: Reduce size of Docker image further
...
- No need to have wget installed
- Clean up rm -rf /var/lib/apt/lists/, see
https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#apt-get
2023-09-03 11:31:35 +02:00
Tim Ruffing
2f0d3bbffb
ci/Dockerfile: Warn if ulimit -n is too high when running Docker
...
The underlying issue does not affect our CI hosts, but is an issue on my
development machine (Arch Linux). In particular, this affects the vanilla
configuration of Docker on systemd, which has effectively no limit:
11400a3f5a/pkg/docker-engine/common/systemd/docker.service (L31)
I hope this saves future generations some precious hours of their life.
2023-09-03 11:31:35 +02:00
Tim Ruffing
6ebe7d2bb3
ci/Dockerfile: Always use versioned clang packages
...
This commit switches to a new strategy to make sure we're installing the
most recent LLVM packages. Before this commit, we used the unversioned
LLVM packages (e.g., `clang` instead of `clang-18`), which are supposed
to provide the latest snapshot, but this is broken for arm64 [1],
which we want to add in a later PR.
Anyway, the new approach is cleaner because it does not require us to
fiddle with the installed `clang` package by removing a symlink.
[1] https://github.com/llvm/llvm-project/issues/64790
Co-authored-by: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com >
2023-09-03 11:29:44 +02:00
Tim Ruffing
ad3e65d9fe
ci: Remove GCC build files and sage to reduce size of Docker image
2023-08-18 13:52:28 +01:00
Hennadii Stepanov
87d35f30c0
ci: Rename cirrus.sh to more general ci.sh
...
This makes sense in the process of moving stuff to GitHub Actions.
2023-08-18 10:57:58 +01:00
Hennadii Stepanov
d78bec7001
ci: Remove Windows MSVC tasks from Cirrus CI
...
Co-authored-by: Tim Ruffing <crypto@timruffing.de >
2023-08-17 10:13:38 +01:00
Hennadii Stepanov
d62db57427
ci: Use Homebrew's gcc in native macOS task
...
Co-authored-by: Tim Ruffing <crypto@timruffing.de >
2023-08-16 14:39:58 +01:00
Hennadii Stepanov
8408dfdc4c
Revert "ci: Run sage prover on CI"
...
This reverts commit d8d54859ed .
2023-08-14 14:28:54 +01:00
Jonas Nick
80187089ff
Merge commits '4494a369 3aef6ab8 0fa84f86 249c81ea 7966aee3 fb758fe8 3fc1de5c 0aacf643 9e6d1b0e 332af315 afd7eb4a c9ebca95 cc557575 0f7657d5 907a6721 b40e2d30 c545fdc3 2bd5f3e6 0e00fc7d c734c642 26392da2 ' into temp-merge-1386
2023-07-27 18:57:30 +00:00
Jonas Nick
74d9073414
Merge commits '83186db3 e9e4526a 5f7903c7 d373a721 09df0bfb 20a5da5f 908e02d5 d75dc59b debf3e5c bf29f8d0 60556c9f cb1a5927 67214f5f 45c5ca76 30574f22 0702ecb0 705ce7ed 3c1a0fd3 10836832 926dd3e9 ac43613d fd491ea1 799f4eec ' into temp-merge-1356
2023-07-27 16:31:40 +00:00
Jonas Nick
4692478853
ci: print $ELLSWIFT in cirrus.sh
2023-07-27 10:20:50 +00:00
Jonas Nick
a9a5c24de2
Merge commits '56582094 427bc3cd 0cf2fb91 9c8c4f44 70be3cad f16a709f 464a9115 1d8f3675 afd8b23b 2bca0a5c 2d51a454 4e682626 a0f4644f 145078c4 7b7503da ec98fced 346a053d ' into temp-merge-1269
2023-07-24 13:46:43 +00:00
Jonas Nick
0d540ec942
Merge commits '88e80722 ff8edf89 f29a3270 a7a7bfaf a01a7d86 b1579cf5 ad7433b1 233822d8 5fbff5d3 2b77240b 1bff2005 e1817a6f 5596ec5c 8ebe5c52 1cca7c17 1b21aa51 cbd25559 09b1d466 57573187 8962fc95 9d1b458d eb8749fc 6048e6c0 ' into temp-merge-1222
2023-07-20 16:29:40 +00:00
Jonas Nick
304fc88557
Merge commits '9a8d65f0 75d7b7f5 665ba77e 3f57b9f7 eacad90f 01b819a8 31ed5386 2a39ac16 0eb30004 cbe41ac1 cc3b8a4f ' into temp-merge-1187
2023-07-20 12:19:00 +00:00
Jonas Nick
e996d076da
Merge commits '44916ae9 86e3b38a ddf2b291 6138d73b e40fd277 ' into temp-merge-1156
2023-07-17 14:02:13 +00:00
Jonas Nick
64717a7b16
Merge commits '8b013fce 485f608f 44c2452f cd470333 accadc94 43756da8 af65d30c 63a3565e 6a873cc4 3efeb9da 9f8a13dc 694ce8fb a43e982b e13fae48 c2ee9175 ' into temp-merge-1146
2023-07-17 13:02:36 +00:00
Jonas Nick
9a981068ce
Merge commits '8b013fce 485f608f 44c2452f cd470333 accadc94 43756da8 ' into temp-merge-1115
2023-07-17 12:01:46 +00:00
Tim Ruffing
981e5be38c
ci: Fix typo in comment
2023-07-06 20:19:07 +02:00
Tim Ruffing
1deecaaf3b
ci: Install development snapshots of gcc and clang
...
TODO: Make sure the Docker image is actually rebuild
2023-07-06 20:19:04 +02:00
Tim Ruffing
98579e297b
ci: Drop manual checkout of merge commit
...
This is no longer necessary as of
https://github.com/cirruslabs/cirrus-ci-docs/issues/791#issuecomment-1615691585 .
2023-07-01 13:01:57 +02:00
Hennadii Stepanov
c862a9fb49
ci: Adjust Docker image to Debian 12 "bookworm"
2023-06-26 10:24:15 +01:00
Hennadii Stepanov
a1782098a9
ci: Force DWARF v4 for Clang when Valgrind tests are expected
2023-06-26 10:03:19 +01:00
Pieter Wuille
4f091847c2
Add ellswift testing to CI
2023-06-20 11:31:58 -04:00
Tim Ruffing
db29bf220c
ci: Remove quirk that runs dummy command after wineserver
...
The underlying issue is now worked around in upstream, see
https://github.com/mstorsjo/msvc-wine/issues/47 for details.
2023-06-03 09:08:38 +01:00
Hennadii Stepanov
c7db4942b3
ci: Fix error D8037 in cl.exe
2023-06-03 09:08:31 +01:00
Hennadii Stepanov
7dae115861
Revert "ci: Move wine prefix to /tmp to avoid error D8037 in cl.exe"
...
This reverts commit 27504d5c94 .
2023-06-02 16:13:29 +01:00
Tim Ruffing
27504d5c94
ci: Move wine prefix to /tmp to avoid error D8037 in cl.exe
...
Don't ask me why this makes a difference. It may be some permission
problem even though everything in Cirrus CI runs as root anyway. In
any case, I'll probably get mad if I investigate this further.
Fixes #1326 .
2023-05-24 14:28:05 +02:00
RandomLattice
e5de454609
tests: Add Wycheproof ECDSA vectors
...
Adds a test using the Wycheproof vectors as outlined in #1106 . The
vectors are taken from the Wycheproof repo. We use a python script
to convert the JSON-formatted vectors into C code.
Co-authored-by: Sean Andersen <6730974+andozw@users.noreply.github.com >
2023-04-09 06:17:16 +02:00
sanket1729
e5a01d12c6
Rename buletproof_pp* to bppp*
2023-02-13 22:16:17 -08:00
Jonas Nick
34c4847a6a
ci: add bulletproofs
2023-02-13 22:15:47 -08:00
Andrew Poelstra
048f9f8642
bulletproofs: add new empty module
2023-02-08 03:09:11 -08:00
Tim Ruffing
e4330341bd
ci: Shutdown wineserver whenever CI script exits
...
Before: CI times out when a wine task fails.
After: Wine tasks exit properly when they fail.
2023-02-06 21:44:56 +01:00
Pieter Wuille
0f088ec112
Rename CTIMETEST -> CTIMETESTS
2023-01-11 16:07:37 -05:00
Pieter Wuille
5e2e6fcfc0
Run ctime test in Linux MSan CI job
2023-01-11 16:07:37 -05:00
Pieter Wuille
5048be17e9
Rename valgrind_ctime_test -> ctime_tests
2023-01-11 16:07:37 -05:00
Jonas Nick
7a74688201
ci: add missing CFLAGS & CPPFLAGS variable to print_environment
2022-12-19 13:22:28 +00:00
Jonas Nick
c2e0fdadeb
ci: set -u in cirrus.sh to treat unset variables as an error
2022-12-19 13:22:18 +00:00
Tim Ruffing
44916ae915
Merge bitcoin-core/secp256k1#1147 : ci: print env to allow reproducing the job outside of CI
...
4e54c03153 ci: print env to allow reproducing the job outside of CI (Jonas Nick)
Pull request description:
Example output:
```
WERROR_CFLAGS="-Werror -pedantic-errors" MAKEFLAGS="-j4" BUILD="check" ECMULTWINDOW="auto" ECMULTGENPRECISION="auto" ASM="no" WIDEMUL="int64" WITH_VALGRIND="no" EXTRAFLAGS="" EXPERIMENTAL="no" ECDH="no" RECOVERY="yes" SCHNORRSIG="no" SECP256K1_TEST_ITERS="" BENCH="yes" SECP256K1_BENCH_ITERS="2" CTIMETEST="yes" EXAMPLES="yes" WRAPPER_CMD="" CC="gcc" AR="" NM="" HOST="" ./ci/cirrus.sh
```
ACKs for top commit:
sipa:
ACK 4e54c03153
real-or-random:
ACK 4e54c03153
Tree-SHA512: b74a8724e72b3de7884e4d93fe933dc5043aec37020672b7997a8faebda3b0cbbba1bca69c344109729261ab4a94e76f4eca0d8773dc101a443fdf9e0d7d54f5
2022-11-14 18:01:49 -05:00
Jonas Nick
49ae843592
ci: mostly prevent "-v/--version: not found" irrelevant error
...
$CC, $WRAPPER_CMD and valgrind are not necessarily defined
2022-11-02 17:13:21 +00:00
Jonas Nick
4e54c03153
ci: print env to allow reproducing the job outside of CI
2022-11-02 15:57:14 +00:00
Tim Ruffing
51f296a46c
ci: Run persistent wineserver to speed up wine
2022-06-29 11:05:40 +02:00
Tim Ruffing
9efc2e5221
ci: Add MSVC builds
...
This adds MSVC builds built on Linux using wine. This requires some
settings of tools and flags because the autotools support for MSVC is
naturally somewhat limited.
The advantage of this approach is that it is compatible with our
existing CI scripts, so there's no need to write a Windows CI script
(in PowerShell or similar). If we want to test building and running on
Windows native (e.g., as supported by Cirrus CI) we could still do this
in the future.
Another advantage of this approach is that contributors can simply use
the docker image if they need a MSVC installation in a non-Windows
environment.
This commit also improves the Dockerfile by grouping RUN commands
according to Docker docs:
https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#run
2022-06-29 11:05:40 +02:00
Jonas Nick
8298c0c79b
Merge commits 'c8aa516b 0a40a486 d8a24632 85b00a1c 59547943 5dcc6f8d 07752831 3ef94aa5 1253a277 64b34979 ac83be33 0e5cbd01 e0508ee9 587239db 1ac7e31c d0ad5814 912b7ccc 8746600e ' into temp-merge-1093
...
Revert: util: Remove endianness detection
2022-03-30 15:00:03 +00:00
Jonas Nick
64b34979ed
Merge bitcoin-core/secp256k1#748 : Add usage examples
...
7c9502cece Add a copy of the CC0 license to the examples (Elichai Turkel)
42e03432e6 Add usage examples to the readme (Elichai Turkel)
517644eab1 Optionally compile the examples in autotools, compile+run in travis (Elichai Turkel)
422a7cc86a Add a ecdh shared secret example (Elichai Turkel)
b0cfbcc143 Add a Schnorr signing and verifying example (Elichai Turkel)
fee7d4bf9e Add an ECDSA signing and verifying example (Elichai Turkel)
Pull request description:
ACKs for top commit:
real-or-random:
ACK 7c9502cece
jonasnick:
ACK 7c9502cece
Tree-SHA512: c475cfd5b324b1e2d7126aa5bb1e7da25183b50adb7357d464c140de83d9097cb1bdc027d09aeadf167dbf9c8afd123235b0a1a742c5795089862418fafa1964
2022-02-23 17:37:58 +00:00
Elichai Turkel
517644eab1
Optionally compile the examples in autotools, compile+run in travis
2022-02-23 16:14:58 +02:00
Tim Ruffing
d8d54859ed
ci: Run sage prover on CI
2022-02-04 15:37:32 +01:00
Jonas Nick
72c8deac03
Merge commits with sync-upstream.sh
...
da0092bc 10f9bd84 297ce820 f34b5cae 920a0e5f 9526874d aa1b889b 20d791ed 3e7b2ea1 21c188b3 8fa41201 515a5dbd c74a7b7e 74c34e72 7006f1b9 ea5e8a9c 793ad901 2e5e4b67 fecf436d 49f608de 49002274 6ad908aa 4f01840b 61ae37c6 486205aa 5d0dbef0 0559fc6e be6944ad a69df3ad b39d431a 0b83b203 09971a3f 9281c9f4 423b6d19 a310e79e 39a36db9 a1102b12
Deal with
- secp256k1_test_rng removal in commit
77a19750b4
- ecmult_gen context simplification after making table static in commit
3b0c2185ea
2022-01-02 16:11:15 +00:00
Tim Ruffing
22382f0ea0
ci: Test different ecmult window sizes
2021-12-22 14:56:27 +01:00
Tim Ruffing
26a022a3a0
ci: Remove STATICPRECOMPUTATION
...
This has been overlooked in #988 .
2021-12-20 14:18:02 +01:00