diff --git a/.github/workflows/windows-test.yml b/.github/workflows/windows-test.yml index c7af6e0ee..5af13663b 100644 --- a/.github/workflows/windows-test.yml +++ b/.github/workflows/windows-test.yml @@ -65,6 +65,49 @@ jobs: env: METACALL_BUILD_OPTIONS: ${{ matrix.options.build }} tests + windows-mingw-test: + name: Windows MinGW Test + runs-on: windows-latest + + steps: + - name: Check out the repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up MSYS2 + uses: msys2/setup-msys2@v2 + with: + update: true + install: > + base-devel + mingw-w64-x86_64-gcc + mingw-w64-x86_64-cmake + mingw-w64-x86_64-make + cache: false + - name: Wait for MSYS2 to complete setup + run: sleep 60 + - name: Add MSYS2 to PATH + run: | + echo "C:\msys64\mingw64\bin" >> $Env:GITHUB_PATH + echo "C:\msys64\usr\bin" >> $Env:GITHUB_PATH + - name: Create build directory + run: mkdir build + + - name: Configure with CMake + working-directory: ./build + run: | + cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug -DOPTION_FORK_SAFE=OFF -DOPTION_BUILD_PLUGINS_BACKTRACE=OFF .. + - name: Build with CMake + working-directory: ./build + run: cmake --build . + + - name: Run CTest + working-directory: ./build + run: | + ctest -j$(getconf _NPROCESSORS_ONLN) --timeout 5400 --output-on-failure -C Debug + shell: bash + windows-distributable: name: Windows Distributable Dispatch needs: windows-test