From 2a30a2c09511ff5ab47aa0b345b525cf34390a69 Mon Sep 17 00:00:00 2001 From: Ahmed <43099566+ahmed-irfan@users.noreply.github.com> Date: Fri, 6 Oct 2023 15:15:54 -0700 Subject: [PATCH] Update action.yml --- .github/actions/build/action.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index 1f90c83a8..18a600369 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -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 }}