Fix Windows build
Some checks failed
Build / build-android (push) Has been cancelled
Build / build-appimage (push) Has been cancelled
Build / build-gentoo (push) Has been cancelled
Build / build-windows (push) Failing after 6m29s

This commit is contained in:
Zachary Hall 2024-10-20 14:06:42 -07:00
parent 495e8a4eab
commit 96ae711708

View file

@ -80,7 +80,7 @@ jobs:
- name: Build protoc
run: ./build-protoc.sh
- name: Install MinGW compiler
run: apt-get install gcc-mingw-w64 g++-mingw-w64 -y
run: apt-get update && apt-get install gcc-mingw-w64 g++-mingw-w64 -y
- name: Build with CMake
run: mkdir -p build-windows && cd build-windows && cmake .. -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc -DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-gcc -G Ninja -DDISABLE_GTK_UI=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_LIBFMT=ON -DUSE_PORTALS=OFF -DENABLE_DBUS=OFF -DBUILD_STATIC=ON -DDOWNLOAD_AUDIO_CODECS_DEPENDENCY=ON -DSDL_MIXER_X_SHARED=OFF -DSDL_MIXER_X_STATIC=ON -DUSE_OGG_VORBIS_STB=ON -DUSE_OPUS=OFF -DUSE_MODPLUG=OFF -DUSE_GME=OFF -DUSE_WAVPACK=OFF -DUSE_XMP=OFF -DUSE_MIDI_EDMIDI=OFF -DUSE_SYSTEM_SDL2=OFF -DBUILD_PROTOC=OFF -DBUILD_SDL=ON -DBUILD_SDL_IMAGE=ON -DBUILD_JSONCPP=ON -DBUILD_SOUNDTOUCH=ON -DBUILD_PROTOBUF=ON -DDISABLE_IMGUI_UI=OFF && ninja && cd ..
- name: Upload artifact