From f1aee0321f80a6c82cc73fac11c6b187cc6bea6d Mon Sep 17 00:00:00 2001 From: Francisco Javier Trujillo Mata Date: Tue, 18 Jun 2024 08:59:04 +0200 Subject: [PATCH] check windows --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++-- autogen.sh | 2 +- configure.ac | 11 +---------- 3 files changed, 30 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a7f7a91..2d9bb5e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,7 +28,7 @@ jobs: run: | sudo apt-get -y update sudo apt-get -y install tree doxygen autopoint - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Configure run: | ./autogen.sh @@ -44,7 +44,33 @@ jobs: run: | make check || (cat test/test-suite.log; false) - name: Upload Test Results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: libconfuse-test-${{ matrix.compiler }} path: test/* + + build-windows: + runs-on: windows-latest + defaults: + run: + shell: msys2 {0} + + steps: + - name: Install MSYS2 packages + uses: msys2/setup-msys2@v2 + with: + msystem: MINGW32 + install: | + base-devel git make texinfo flex bison patch binutils mingw-w64-i686-gcc mpc-devel tar + autotools gettext gettext-devel + mingw-w64-i686-cmake mingw-w64-i686-make mingw-w64-i686-libogg + update: true + + - uses: actions/checkout@v4 + - name: Configure + run: | + ./autogen.sh + ./configure --prefix= --disable-silent-rules + - name: Build + run: | + make diff --git a/autogen.sh b/autogen.sh index df6fd29..d816476 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,5 +1,5 @@ #!/bin/sh # (Re)Generate configure script and all build related files for i18n -autoreconf -W portability -vism --force >/dev/null +autoreconf -W portability -vism --force >/dev/null --verbose diff --git a/configure.ac b/configure.ac index f4c4a68..4e943c3 100644 --- a/configure.ac +++ b/configure.ac @@ -50,15 +50,6 @@ AM_CONDITIONAL(MISSING_REALLOCARRAY, [test "x$ac_cv_func_reallocarray" = "xno"]) AM_CONDITIONAL(WINDOWS_BUILD, [test "x$ac_cv_header_windows_h" = "xyes"]) # Files to generate -AC_CONFIG_FILES([Makefile \ - src/Makefile \ - examples/Makefile \ - po/Makefile.in \ - m4/Makefile \ - tests/Makefile \ - doc/Makefile \ - doc/Doxyfile \ - libconfuse.pc \ - libconfuse.spec]) +AC_CONFIG_FILES([Makefile src/Makefile examples/Makefile po/Makefile.in m4/Makefile tests/Makefile doc/Makefile doc/Doxyfile libconfuse.pc libconfuse.spec]) AC_OUTPUT