From bd1ce56c43721d7b63de9b5fcb77c5e5202f04e6 Mon Sep 17 00:00:00 2001 From: Taiju Yamada Date: Fri, 29 Mar 2024 12:49:54 +0900 Subject: [PATCH] add mingw CI Signed-off-by: Taiju Yamada --- .github/workflows/ci.yml | 50 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64d1682..6c78ea0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,6 +58,56 @@ jobs: - name: Run extended tests run: bash tools/test_extended.sh + run_tests_mingw_linux_64: + needs: check_format + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.3.4 + - name: Install build dependencies (Linux) + run: sudo apt install nasm mingw-w64 + - name: Build + shell: bash + run: | + make -j $(nproc) -f Makefile.unx programs/igzip tests arch=mingw host_cpu=x86_64 + # wine does not seem available, hence cannot run tests. + + run_tests_mingw_linux_32: + needs: check_format + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.3.4 + - name: Install build dependencies (Linux) + run: sudo apt install nasm mingw-w64 + - name: Build + shell: bash + run: | + make -j $(nproc) -f Makefile.unx programs/igzip tests arch=mingw host_cpu=base_aliases CC=i686-w64-mingw32-gcc + + run_tests_mingw_windows_64: + needs: check_format + runs-on: windows-latest + steps: + - uses: actions/checkout@v2.3.4 + - name: Install nasm + uses: ilammy/setup-nasm@v1.2.0 + - name: Build + shell: bash + run: | + make -j $(nproc) -f Makefile.unx programs/igzip tests SIM= arch=mingw host_cpu=x86_64 AR=x86_64-w64-mingw32-gcc-ar + - name: Run tests + shell: bash + run: | + # autoconf is missing, hence simulates test_checks.sh + make -j $(nproc) -f Makefile.unx check D=TEST_SEED=0 SIM= arch=mingw host_cpu=x86_64 AR=x86_64-w64-mingw32-gcc-ar + - name: Run extended tests + shell: bash + run: | + # simulates test_extended.sh + make -j $(nproc) -f Makefile.unx perf D=TEST_SEED=0 SIM= arch=mingw host_cpu=x86_64 AR=x86_64-w64-mingw32-gcc-ar + make -j $(nproc) -f Makefile.unx test D=TEST_SEED=0 SIM= arch=mingw host_cpu=x86_64 AR=x86_64-w64-mingw32-gcc-ar + + # seems like i686-w64-mingw32-gcc is not available on windows runner. + run_tests_windows: needs: check_format runs-on: windows-latest