SDL_net: Revert "ci: don't build example on msys2"

From ced6c5ce3bf6c96fb3428e4693c8b1342f89c529 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath <[EMAIL REDACTED]>
Date: Mon, 5 Sep 2022 07:57:05 +0530
Subject: [PATCH] Revert "ci: don't build example on msys2"

This reverts commit e2a47cb6164f10a39608acff0fb4c9b7523aa8e5.
Also add SDL2NET_SAMPLES option with cmake command.
---
 .github/workflows/main.yml | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 715dbcc..e215eb5 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -89,12 +89,12 @@ jobs:
       if: "matrix.platform.cmake"
       run: |
         set -eu
-        # FIXME: add -DSDL2NET_SAMPLES=ON when msys2 has SDL2test
         cmake -S . \
           -B build-cmake \
           -DBUILD_SHARED_LIBS=ON \
           -DCMAKE_BUILD_TYPE=Release \
           -DCMAKE_INSTALL_PREFIX=prefix_cmake \
+          -DSDL2NET_SAMPLES=ON \
           ${{ matrix.platform.cmake }}
 
     - name: Build (CMake)
@@ -118,10 +118,6 @@ jobs:
         mkdir build-autotools
         ./autogen.sh
         set -- --prefix=$(pwd)/prefix_autotools
-        # mingw-w64-*-SDL2 doesn't have SDL_test, so only build this on Unix
-        if [ "${{ matrix.platform.shell }}" != 'sh' ]; then
-          set -- "$@" --disable-examples
-        fi
         ( cd build-autotools && ../configure "$@" )
 
     - name: Build (Autotools)