Merge bitcoin-core/secp256k1#1399: ci, gha: Run "SageMath prover" job on GitHub Actions

8408dfdc4cfcc5cf87ac0a7d229f8a1c1d63128a Revert "ci: Run sage prover on CI" (Hennadii Stepanov)
c8d9914fb1bf2790e6837794111614b640757ea3 ci, gha: Run "SageMath prover" job on GitHub Actions (Hennadii Stepanov)

Pull request description:

ACKs for top commit:
  real-or-random:
    utACK 8408dfdc4cfcc5cf87ac0a7d229f8a1c1d63128a
  jonasnick:
    ACK 8408dfdc4cfcc5cf87ac0a7d229f8a1c1d63128a

Tree-SHA512: 4de628b6d5535023c5351faebfd98d2bd9effe6592f14ffe0d0f7c6eeedd7426b9891da70aa3ea7fa830f0abc054f6b015af01fb6e26f50d45eb26177a7a6310
This commit is contained in:
Jonas Nick 2023-08-15 11:50:05 +00:00
commit ce765a5b8e
No known key found for this signature in database
GPG Key ID: 4861DBF262123605
3 changed files with 17 additions and 9 deletions

View File

@ -371,10 +371,3 @@ task:
- g++ -Werror include/*.h - g++ -Werror include/*.h
- clang -Werror -x c++-header include/*.h - clang -Werror -x c++-header include/*.h
- /opt/msvc/bin/x64/cl.exe -c -WX -TP include/*.h - /opt/msvc/bin/x64/cl.exe -c -WX -TP include/*.h
task:
name: "sage prover"
<< : *LINUX_CONTAINER
test_script:
- cd sage
- sage prove_group_implementations.sage

View File

@ -37,3 +37,19 @@ jobs:
build\src\RelWithDebInfo\bench_ecmult.exe build\src\RelWithDebInfo\bench_ecmult.exe
build\src\RelWithDebInfo\bench_internal.exe build\src\RelWithDebInfo\bench_internal.exe
build\src\RelWithDebInfo\bench.exe build\src\RelWithDebInfo\bench.exe
sage:
name: "SageMath prover"
runs-on: ubuntu-latest
container:
image: sagemath/sagemath:latest
options: --user root
steps:
- name: Checkout
uses: actions/checkout@v3
- name: CI script
run: |
cd sage
sage prove_group_implementations.sage

View File

@ -21,8 +21,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
gcc-aarch64-linux-gnu libc6-dev-arm64-cross libc6-dbg:arm64 \ gcc-aarch64-linux-gnu libc6-dev-arm64-cross libc6-dbg:arm64 \
gcc-powerpc64le-linux-gnu libc6-dev-ppc64el-cross libc6-dbg:ppc64el \ gcc-powerpc64le-linux-gnu libc6-dev-ppc64el-cross libc6-dbg:ppc64el \
gcc-mingw-w64-x86-64-win32 wine64 wine \ gcc-mingw-w64-x86-64-win32 wine64 wine \
gcc-mingw-w64-i686-win32 wine32 \ gcc-mingw-w64-i686-win32 wine32
sagemath
WORKDIR /root WORKDIR /root