From 2f4373b9c6d80f7e6b9556c8642ac876b211f888 Mon Sep 17 00:00:00 2001 From: David Declerck Date: Thu, 3 Oct 2024 10:39:16 +0200 Subject: [PATCH] Fix MSYS CI --- .github/workflows/windows-msys1.yml | 10 ++++++++++ .github/workflows/windows-msys2.yml | 9 ++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/windows-msys1.yml b/.github/workflows/windows-msys1.yml index 67f3801c6..35fbe4d1e 100644 --- a/.github/workflows/windows-msys1.yml +++ b/.github/workflows/windows-msys1.yml @@ -17,6 +17,7 @@ env: MSYSTEM: MINGW32 MSYSPKGS: msys-m4 msys-flex msys-coreutils msys-help2man + MINGW_AUTOCONF_VERS: autoconf-2.70 MINGW_BISON_VERS: bison-3.0.1 MINGW_GMP_VERS: gmp-6.3.0 MINGW_BDB_VERS: db-6.0.19.NC @@ -85,6 +86,15 @@ jobs: run: | bash -lc "mingw-get install %MSYSPKGS%" + - name: Install Autoconf 2.70 + if: steps.restore-msys.outputs.cache-hit != 'true' + run: | + curl -L https://ftpmirror.gnu.org/autoconf/%MINGW_AUTOCONF_VERS%.tar.gz -o %MINGW_AUTOCONF_VERS%.tar.gz + tar -xvzf %MINGW_AUTOCONF_VERS%.tar.gz + bash -lc "cd %MINGW_AUTOCONF_VERS% && ./configure" + bash -lc "cd %MINGW_AUTOCONF_VERS% && make" + bash -lc "cd %MINGW_AUTOCONF_VERS% && make install" + - name: Install Bison 3.0 if: steps.restore-msys.outputs.cache-hit != 'true' run: | diff --git a/.github/workflows/windows-msys2.yml b/.github/workflows/windows-msys2.yml index 59ba117b5..588164d61 100644 --- a/.github/workflows/windows-msys2.yml +++ b/.github/workflows/windows-msys2.yml @@ -88,15 +88,18 @@ jobs: save-always: true enableCrossOsArchive: true + - name: Run NIST + shell: msys2 {0} + run: | + make -C _build/tests test --jobs=$(($(nproc)+1)) TESTSUITEFLAGS="--jobs=$(($(nproc)+1))" + - name: Run testuite shell: msys2 {0} run: | sed '/AT_SETUP(\[temporary path invalid\])/a \ AT_SKIP_IF(\[true\])' \ -i tests/testsuite.src/used_binaries.at - make -C _build/tests checkall \ - --jobs=$(($(nproc)+1)) \ - TESTSUITEFLAGS="--jobs=$(($(nproc)+1))" || \ + make -C _build/tests check make -C _build/tests check \ TESTSUITEFLAGS="--recheck --verbose"