From db50665c5a81c6221fe9e1da9abfbabc61a15a1c Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Wed, 18 Dec 2024 21:44:39 +0100 Subject: [PATCH] GHA: Use MinGW for Windows GDExtension builds --- .github/workflows/gdextension.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/gdextension.yml b/.github/workflows/gdextension.yml index b784816..72f8ce7 100644 --- a/.github/workflows/gdextension.yml +++ b/.github/workflows/gdextension.yml @@ -41,7 +41,7 @@ on: # Global Settings env: SCONS_CACHE_LIMIT: 4096 - SCONSFLAGS: use_mingw=yes dev_build=no + SCONSFLAGS: use_mingw=yes dev_build=no verbose=yes EM_VERSION: 3.1.45 EM_CACHE_FOLDER: "emsdk-cache" GODOT_VERSION: 4.3-stable @@ -71,14 +71,14 @@ jobs: should-build: true - name: 🪟 Windows (x86_64, release) - runner: windows-latest + runner: ubuntu-latest platform: windows target: template_release arch: x86_64 should-build: true - name: 🪟 Windows (x86_64, debug) - runner: windows-latest + runner: ubuntu-latest platform: windows target: editor arch: x86_64 @@ -280,10 +280,6 @@ jobs: ndk-version: r23c link-to-sdk: true - - name: Set up MSVC problem matcher on Windows - if: matrix.opts.platform == 'windows' - uses: ammaraskar/msvc-problem-matcher@master - - name: Set up scons cache if: inputs.test-build # ! Only cache test/PR builds uses: actions/cache@v4 @@ -291,9 +287,12 @@ jobs: path: ${{github.workspace}}/.scons_cache/ key: ${{env.BIN}}-${{inputs.debug-symbols}}-${{inputs.godot-cpp-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}} restore-keys: | - ${{env.BIN}}-${{inputs.debug-symbols}}-${{inputs.godot-cpp-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}} - ${{env.BIN}}-${{inputs.debug-symbols}}-${{inputs.godot-cpp-ref}}-${{inputs.limboai-ref}} - ${{env.BIN}}-${{inputs.debug-symbols}}-${{inputs.godot-cpp-ref}} + + - name: Set up MinGW + if: matrix.opts.platform == 'windows' + run: | + sudo apt update + sudo apt install g++-mingw-w64-x86-64-posix - name: Compilation shell: bash