Skip to content

Commit 60a767d

Browse files
committed
ci: build and link the dependencies statically
1 parent d261087 commit 60a767d

File tree

1 file changed

+2
-27
lines changed

1 file changed

+2
-27
lines changed

.github/workflows/ci-unix.yaml

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,11 @@ jobs:
3333
run: |
3434
git submodule init
3535
git submodule update
36-
- uses: actions/checkout@v2
37-
with:
38-
repository: bitcoin-core/secp256k1
39-
path: libsecp256k1
40-
- name: Build and install libsecp256k1
41-
run: |
42-
brew install libtool automake
43-
cd libsecp256k1
44-
./autogen.sh
45-
./configure --enable-module-recovery --enable-benchmark=no --enable-tests=no
46-
make
47-
sudo make install
48-
pkg-config --cflags --libs libsecp256k1
4936
- name: Build
5037
run: |
5138
mkdir build
5239
cd build
53-
cmake -DETHC_BUILD_TESTS=ON ..
40+
cmake -DETHC_BUILD_TESTS=ON -DETHC_TOMMATH_STATIC=ON -DETHC_SECP256K1_STATIC=ON ..
5441
make
5542
ls -lh
5643
- name: Test
@@ -67,23 +54,11 @@ jobs:
6754
run: |
6855
git submodule init
6956
git submodule update
70-
- uses: actions/checkout@v2
71-
with:
72-
repository: bitcoin-core/secp256k1
73-
path: libsecp256k1
74-
- name: Build and install libsecp256k1
75-
run: |
76-
cd libsecp256k1
77-
./autogen.sh
78-
./configure --enable-module-recovery --enable-benchmark=no --enable-tests=no
79-
make
80-
sudo make install
81-
pkg-config --cflags --libs libsecp256k1
8257
- name: Build
8358
run: |
8459
mkdir build
8560
cd build
86-
cmake -DETHC_BUILD_TESTS=ON ..
61+
cmake -DETHC_BUILD_TESTS=ON -DETHC_TOMMATH_STATIC=ON -DETHC_SECP256K1_STATIC=ON ..
8762
make
8863
ls -lh
8964
- name: Test

0 commit comments

Comments
 (0)