Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-irfan authored Oct 6, 2023
1 parent bb92b6a commit 2a30a2c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ runs:
if: runner.os == 'Windows'
shell: bash
run: >-
pwd = /cygdrive/c/cygwin64/$(pwd) && wget https://ftp.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz &&
pwd = $(pwd) && wget https://ftp.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz &&
tar xf gmp-6.3.0.tar.xz &&
mkdir dynamic_gmp && mkdir static_gmp &&
cd gmp-6.3.0 && ./configure --enable-shared --disable-static --prefix=$pwd/dynamic_gmp &&
cd gmp-6.3.0 && ./configure --host=x86_64-w64-mingw32 --build=i686-pc-cygwin --enable-shared --disable-static --prefix=$pwd/dynamic_gmp &&
make && make install &&
make clean && ./configure --enable-static --disable-shared --prefix=$pwd/static_gmp &&
make clean && ./configure --host=x86_64-w64-mingw32 --build=i686-pc-cygwin --enable-static --disable-shared --prefix=$pwd/static_gmp &&
make && make install &&
cd $pwd &&
autoconf &&
${{ 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 &&
${{ inputs.env }} ./configure --host=x86_64-w64-mingw32 ${{ 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 }}
make OPTION=mingw64 MODE=${{ inputs.mode }}

0 comments on commit 2a30a2c

Please sign in to comment.