From 3924ddda71546041e36c8b12d9622ee491910920 Mon Sep 17 00:00:00 2001 From: Shun Wang Date: Thu, 15 Oct 2026 11:32:30 +0800 Subject: [PATCH 1/4] CI: fix build test Updated the build workflow to install additional packages and streamline commands for Windows and macOS. Add libiconv to build dependencies Change libiconv to libiconv-devel Update build.yml to use UCRT64 msystem try fix _spawnv error --- .github/workflows/build.yml | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 70c6cf0..9e16b86 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,7 @@ jobs: compiler: [ clang, gcc ] steps: - name: Install packages - run: brew install automake + run: brew install automake autoconf libtool - uses: actions/checkout@v2 - name: Autoconf run: autoreconf -i -f @@ -41,15 +41,26 @@ jobs: run: make check windows: runs-on: windows-latest - env: - MSYSTEM: MINGW64 + defaults: + run: + shell: msys2 {0} steps: - - uses: actions/checkout@v2 + - uses: msys2/setup-msys2@v2 + with: + update: true + install: >- + libtool + base-devel + gcc + gettext + libiconv-devel + - uses: actions/checkout@v6 - name: Autoconf - run: C:\msys64\usr\bin\bash -c -l 'cd "$GITHUB_WORKSPACE" && autoreconf -i -f' + run: autoreconf -i -f - name: Configure - run: C:\msys64\usr\bin\bash -c -l 'cd "$GITHUB_WORKSPACE" && ./configure' + run: ./configure - name: Make - run: C:\msys64\usr\bin\bash -c -l 'cd "$GITHUB_WORKSPACE" && make' + run: make - name: Test - run: C:\msys64\usr\bin\bash -c -l 'cd "$GITHUB_WORKSPACE" && make check' + id: make-check + run: make check From 3d27fc94ebe464f9d5ecf09c377f33c8fb6a69b4 Mon Sep 17 00:00:00 2001 From: Shun Wang Date: Fri, 16 Oct 2026 08:39:57 +0800 Subject: [PATCH 2/4] msystem: MINGW32 --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9e16b86..fd1e5d0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,8 +48,9 @@ jobs: - uses: msys2/setup-msys2@v2 with: update: true + msystem: MINGW64 install: >- - libtool + autotools base-devel gcc gettext From 2c54451f9660b3b7cc140d33c926295bd1f261b7 Mon Sep 17 00:00:00 2001 From: Shun Wang Date: Fri, 16 Oct 2026 08:52:07 +0800 Subject: [PATCH 3/4] disable "-Wno-error=implicit-function-declaration" --- .github/workflows/build.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fd1e5d0..e5fb34a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,7 +48,6 @@ jobs: - uses: msys2/setup-msys2@v2 with: update: true - msystem: MINGW64 install: >- autotools base-devel @@ -59,7 +58,7 @@ jobs: - name: Autoconf run: autoreconf -i -f - name: Configure - run: ./configure + run: ./configure CFLAGS="-Wno-error=implicit-function-declaration" - name: Make run: make - name: Test From 538a73aff2c0d5c403de30aa4374de783c589712 Mon Sep 17 00:00:00 2001 From: Shun Wang Date: Fri, 16 Oct 2026 09:07:17 +0800 Subject: [PATCH 4/4] Modify MSYS2 setup in build workflow Updated MSYS2 setup to use MINGW64 and changed installed packages. --- .github/workflows/build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e5fb34a..3cdbfa9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,10 +48,11 @@ jobs: - uses: msys2/setup-msys2@v2 with: update: true + msystem: MINGW64 install: >- - autotools - base-devel - gcc + mingw-w64-x86_64-toolchain + mingw-w64-x86_64-autotools + mingw-w64-x86_64-libtool gettext libiconv-devel - uses: actions/checkout@v6