Skip to content

Commit

Permalink
* CI: use to set the path to mingw32, hopefully it works this time... (
Browse files Browse the repository at this point in the history
  • Loading branch information
nickysn authored Jan 25, 2024
1 parent d107c0c commit 4677231
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,13 @@ jobs:
gcc-i686-linux-gnu binutils-i686-linux-gnu \
mingw-w64
- name: Setup Build
if: matrix.builder == 'windows-2019'
- name: Setup mingw32
if: matrix.target.triple == 'i686-w32-mingw32'
run: |
curl -LSsO https://github.com/brechtsanders/winlibs_mingw/releases/download/11.1.0-12.0.0-8.0.2-r1/winlibs-i686-posix-dwarf-gcc-11.1.0-mingw-w64-8.0.2-r1.7z
echo "588794e11be36389501610cf78de777e52a920e03db256ee8bd1a7c2c45e39a4 winlibs-i686-posix-dwarf-gcc-11.1.0-mingw-w64-8.0.2-r1.7z" | sha256sum -c
7z x winlibs-i686-posix-dwarf-gcc-11.1.0-mingw-w64-8.0.2-r1.7z
7z x winlibs-i686-posix-dwarf-gcc-11.1.0-mingw-w64-8.0.2-r1.7z C:\\
echo "C:\\mingw32\\bin" >> $GITHUB_PATH
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -109,13 +110,6 @@ jobs:
echo i386.linux.gcc.linkerexe = \"i686-linux-gnu-gcc\" >> nimlangserver.nim.cfg
echo i386.windows.gcc.exe = \"i686-w64-mingw32-gcc.exe\" >> nimlangserver.nim.cfg
echo i386.windows.gcc.linkerexe = \"i686-w64-mingw32-gcc.exe\" >> nimlangserver.nim.cfg
if [ ${{ matrix.target.triple }} = 'i686-w32-mingw32' ]; then
echo old PATH:
echo ${PATH}
export PATH=`pwd`/mingw32/bin;${PATH}
echo new PATH:
echo ${PATH}
fi
if [ ${{ matrix.target.triple }} = 'aarch64-apple-darwin14' ]; then
echo "--passC:\"-target arm64-apple-macos11\"" >> nimlangserver.nim.cfg
echo "--passL:\"-target arm64-apple-macos11\"" >> nimlangserver.nim.cfg
Expand Down

0 comments on commit 4677231

Please sign in to comment.