40
40
BENCH : ' yes'
41
41
SECP256K1_BENCH_ITERS : 2
42
42
CTIMETESTS : ' yes'
43
+ SYMBOL_CHECK : ' yes'
43
44
# Compile and run the examples.
44
45
EXAMPLES : ' yes'
45
46
@@ -461,6 +462,7 @@ jobs:
461
462
ASAN_OPTIONS : ' strict_string_checks=1:detect_stack_use_after_return=1:detect_leaks=1'
462
463
LSAN_OPTIONS : ' use_unaligned=1'
463
464
SECP256K1_TEST_ITERS : 32
465
+ SYMBOL_CHECK : ' no'
464
466
465
467
steps :
466
468
- name : Checkout
@@ -525,6 +527,7 @@ jobs:
525
527
SECP256K1_TEST_ITERS : 32
526
528
ASM : ' no'
527
529
WITH_VALGRIND : ' no'
530
+ SYMBOL_CHECK : ' no'
528
531
529
532
steps :
530
533
- name : Checkout
@@ -620,6 +623,7 @@ jobs:
620
623
CC : ' clang'
621
624
HOMEBREW_NO_AUTO_UPDATE : 1
622
625
HOMEBREW_NO_INSTALL_CLEANUP : 1
626
+ SYMBOL_CHECK : ' no'
623
627
624
628
strategy :
625
629
fail-fast : false
@@ -652,6 +656,12 @@ jobs:
652
656
env : ${{ matrix.env_vars }}
653
657
run : ./ci/ci.sh
654
658
659
+ - name : Symbol check
660
+ run : |
661
+ python3 --version
662
+ python3 -m pip install lief
663
+ python3 ./tools/symbol-check.py .libs/libsecp256k1.dylib
664
+
655
665
- run : cat tests.log || true
656
666
if : ${{ always() }}
657
667
- run : cat noverify_tests.log || true
@@ -681,6 +691,7 @@ jobs:
681
691
HOMEBREW_NO_INSTALL_CLEANUP : 1
682
692
WITH_VALGRIND : ' no'
683
693
CTIMETESTS : ' no'
694
+ SYMBOL_CHECK : ' no'
684
695
685
696
strategy :
686
697
fail-fast : false
@@ -708,6 +719,16 @@ jobs:
708
719
env : ${{ matrix.env_vars }}
709
720
run : ./ci/ci.sh
710
721
722
+ - name : Symbol check
723
+ env :
724
+ VIRTUAL_ENV : ' ${{ github.workspace }}/venv'
725
+ run : |
726
+ python3 --version
727
+ python3 -m venv $VIRTUAL_ENV
728
+ export PATH="$VIRTUAL_ENV/bin:$PATH"
729
+ python3 -m pip install lief
730
+ python3 ./tools/symbol-check.py .libs/libsecp256k1.dylib
731
+
711
732
- run : cat tests.log || true
712
733
if : ${{ always() }}
713
734
- run : cat noverify_tests.log || true
@@ -737,6 +758,7 @@ jobs:
737
758
configuration :
738
759
- job_name : ' x64 (MSVC): Windows (VS 2022, shared)'
739
760
cmake_options : ' -A x64 -DBUILD_SHARED_LIBS=ON'
761
+ symbol_check : ' true'
740
762
- job_name : ' x64 (MSVC): Windows (VS 2022, static)'
741
763
cmake_options : ' -A x64 -DBUILD_SHARED_LIBS=OFF'
742
764
- job_name : ' x64 (MSVC): Windows (VS 2022, int128_struct)'
@@ -763,6 +785,13 @@ jobs:
763
785
run : |
764
786
cd build/bin/RelWithDebInfo && file *tests.exe bench*.exe libsecp256k1-*.dll || true
765
787
788
+ - name : Symbol check
789
+ if : ${{ matrix.configuration.symbol_check }}
790
+ run : |
791
+ py -3 --version
792
+ py -3 -m pip install lief
793
+ py -3 .\tools\symbol-check.py build\bin\RelWithDebInfo\libsecp256k1-2.dll
794
+
766
795
- name : Check
767
796
run : |
768
797
ctest -C RelWithDebInfo --test-dir build -j ([int]$env:NUMBER_OF_PROCESSORS + 1)
0 commit comments