Skip to content

Commit

Permalink
CI: MacOS run C tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mratsim committed Jan 26, 2025
1 parent 242fd20 commit a2fa8e4
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -322,41 +322,47 @@ jobs:
cd constantine
nimble make_lib --verbose
nimble make_headers --verbose
clang -Iinclude -I$(brew --prefix)/include \
-Llib -L$(brew --prefix)/lib \
mkdir -p build/test_lib
clang -Iinclude -I"$(brew --prefix)/include" \
-Llib -L"$(brew --prefix)/lib" \
-o build/test_lib/t_libctt_bls12_381_staticlink.exe \
examples-c/t_libctt_bls12_381.c \
lib/libconstantine.a \
-lgmp
clang -Iinclude -I$(brew --prefix)/include \
-Llib -L$(brew --prefix)/lib \
./build/test_lib/t_libctt_bls12_381_staticlink.exe
clang -Iinclude -I"$(brew --prefix)/include" \
-Llib -L"$(brew --prefix)/lib" \
-o build/test_lib/t_libctt_bls12_381_dynlink.exe \
examples-c/t_libctt_bls12_381.c \
-lconstantine \
-lgmp
clang -Iinclude -I$(brew --prefix)/include \
-Llib -L$(brew --prefix)/lib \
./build/test_lib/t_libctt_bls12_381_dynlink.exe
clang -Iinclude -I"$(brew --prefix)/include" \
-Llib -L"$(brew --prefix)/lib" \
-o build/test_lib/t_libctt_banderwagon_staticlink.exe \
examples-c/t_libctt_banderwagon.c \
lib/libconstantine.a \
-lgmp
clang -Iinclude -I$(brew --prefix)/include \
-Llib -L$(brew --prefix)/lib \
./build/test_lib/t_libctt_banderwagon_staticlink.exe
clang -Iinclude -I"$(brew --prefix)/include" \
-Llib -L"$(brew --prefix)/lib" \
-o build/test_lib/t_libctt_banderwagon_dynlink.exe \
examples-c/t_libctt_banderwagon.c \
-lconstantine \
-lgmp
clang -Iinclude -I$(brew --prefix)/include \
-Llib -L$(brew --prefix)/lib \
./build/test_lib/t_libctt_banderwagon_dynlink.exe
clang -Iinclude -I"$(brew --prefix)/include" \
-Llib -L"$(brew --prefix)/lib" \
-o build/test_lib/ethereum_bls_signatures_staticlink.exe \
examples-c/ethereum_bls_signatures.c \
lib/libconstantine.a
clang -Iinclude -I$(brew --prefix)/include \
-Llib -L$(brew --prefix)/lib \
./build/test_lib/ethereum_bls_signatures_staticlink.exe
clang -Iinclude -I"$(brew --prefix)/include" \
-Llib -L"$(brew --prefix)/lib" \
-o build/test_lib/ethereum_bls_signatures_dynlink.exe \
examples-c/ethereum_bls_signatures.c \
-lconstantine
./build/test_lib/ethereum_bls_signatures_dynlink.exe
- name: Run Constantine as C library tests (Windows with Assembly)
# So "test_lib" uses C and can find GMP
Expand Down

0 comments on commit a2fa8e4

Please sign in to comment.