Skip to content

Commit

Permalink
Disable SDL2 sensor
Browse files Browse the repository at this point in the history
And move MXE MinGW download location to GitHub
  • Loading branch information
Benau committed Apr 27, 2021
1 parent 5ab1432 commit 5832613
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/win.yml
Expand Up @@ -63,13 +63,11 @@ jobs:
- name: Set up MinGW for x86 or x64
if: ${{ matrix.arch == 'i686' || matrix.arch == 'x86_64' }}
run: |
sudo pip3 install gdown
cd /
sudo mkdir -p /data/mxe/usr
cd /data/mxe/usr
# Original source is located in supertuxkart.official gmail
# It's compiled from https://github.com/mxe/mxe
sudo gdown https://drive.google.com/uc?id=1KK1RH3W8Df87oypadSLPQIGWQG5MQwRn
sudo wget https://github.com/supertuxkart/dependencies/releases/download/latest/mxe_static_mingw.zip
sudo unzip mxe_static_mingw.zip
sudo rm mxe_static_mingw.zip
- name: Build zlib
Expand Down Expand Up @@ -359,10 +357,11 @@ jobs:
cd src/sdl2
mkdir build
cd build
# Sensor is causing problems in msvc debugger
cmake .. -DLLVM_ARCH=${{ matrix.arch }} -DLLVM_PREFIX=$HOME/llvm-mingw \
-DCMAKE_TOOLCHAIN_FILE=../../../cmake/Toolchain-llvm-mingw.cmake \
-DCMAKE_INSTALL_PREFIX=$HOME/dependencies-win-${{ matrix.arch }} \
-DBUILD_SHARED_LIBS=ON
-DBUILD_SHARED_LIBS=ON -DSDL_SENSOR=OFF
make -j4
dll2lib.sh ${{ env.dlltool_arch }} SDL2.dll
# Manually install the header for msvc usage
Expand Down

0 comments on commit 5832613

Please sign in to comment.