Skip to content

Commit

Permalink
compile gmp
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-irfan committed Oct 6, 2023
1 parent b5689dc commit d9147fd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
10 changes: 9 additions & 1 deletion .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,15 @@ runs:
if: runner.os == 'Windows'
shell: bash
run: >-
pwd = $(pwd) && wget https://ftp.gnu.org/gnu/gmp/gmp-6.3.0.tar.lz &&
tar xf gmp-6.3.0.tar.lz &&
mkdir dynamic_gmp && mkdir static_gmp &&
cd gmp-6.3.0 && ./configure --enable-shared --disable-static --prefix=$pwd/dynamic_gmp &&
make && make install &&
make clean && ./configure --enable-static --disable-shared --prefix=$pwd/static_gmp &&
make && make install &&
cd $pwd &&
autoconf &&
${{ inputs.env }} ./configure ${{ inputs.config-opt }} &&
${{ inputs.env }} ./configure ${{ inputs.config-opt }} CPPFLAGS=-I$pwd/dynamic_gmp/include LDFLAGS=-L$pwd/dynamic_gmp/lib --with-static-gmp=$pwd/static_gmp/lib/libgmp.a --with-static-gmp-include-dir=$pwd/static_gmp/include &&
export LD_LIBRARY_PATH=/usr/local/lib/:${LD_LIBRARY_PATH} &&
make MODE=${{ inputs.mode }}
5 changes: 2 additions & 3 deletions .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ runs:
packages: |
autoconf,
coreutils,
gmp,
gperf,
python3,
python3-pip
wget

0 comments on commit d9147fd

Please sign in to comment.