From 4add40a68d21e071c7562c7775dc4babf5339c2e Mon Sep 17 00:00:00 2001 From: JustDoom <61824552+JustDoom@users.noreply.github.com> Date: Sat, 19 Oct 2024 18:25:04 +1000 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 250e9ba..730ebb0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,14 +47,11 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Install MinGW-w64 - run: | - sudo apt-get update - sudo apt-get install -y mingw-w64 - - name: Install dependencies run: | - sudo apt-get install -y cmake libopenal-dev libvorbis-dev libflac-dev + sudo apt-get update + sudo apt-get install -y cmake mingw-w64 ninja-build + sudo apt-get install -y libopenal-dev libvorbis-dev libflac-dev - name: Setup SSH key and Install submodules env: @@ -69,8 +66,8 @@ jobs: - name: Configure and build for Windows run: | mkdir build && cd build - # Use the MinGW generator for cross-compiling - cmake -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE=/usr/share/mingw-w64/toolchain-mingw32.cmake .. + # Use the Ninja generator for cross-compiling + cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=/usr/share/mingw-w64/toolchain-mingw32.cmake .. cmake --build . --config Release - name: Upload executable