diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 58c40e995..dc77bf696 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -73,13 +73,14 @@ jobs: sudo apt-get install -y mingw-w64 - name: Compile dependencies run: | + old_pwd=$PWD cd /tmp wget https://github.com/libexpat/libexpat/releases/download/R_2_5_0/expat-2.5.0.tar.bz2 tar xjf expat-2.5.0.tar.bz2 cd expat-2.5.0 mkdir build cd build - cmake -DCMAKE_C_COMPILER=/usr/bin/i686-w64-mingw32-gcc -DCMAKE_CXX_COMPILER=/usr/bin/i686-w64-mingw32-g++ -DCMAKE_INSTALL_PREFIX=/usr/i686-w64-mingw32/ .. + cmake -DCMAKE_TOOLCHAIN_FILE=$old_pwd/cmake/toolchains/Ubuntu-MinGW-W64-${{matrix.compiler.bits}}.cmake -DCMAKE_INSTALL_PREFIX=/usr/i686-w64-mingw32/ .. make sudo make install cd ../..