diff --git a/.github/workflows/CI-cygwin.yml b/.github/workflows/CI-cygwin.yml index 7aaa8cd83..c9f56bab0 100644 --- a/.github/workflows/CI-cygwin.yml +++ b/.github/workflows/CI-cygwin.yml @@ -14,7 +14,7 @@ jobs: build_cygwin: strategy: matrix: - os: [windows-2019] + os: [windows-2022] arch: [x64, x86] include: - platform: 'x86_64' @@ -33,15 +33,8 @@ jobs: platform: ${{ matrix.arch }} packages: ${{ matrix.packages }} - - name: Build cppcheck - run: | - C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE% && make -j2 - - - name: Build test - run: | - C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE% && make -j2 testrunner - - - name: Run test + # Cygwin will always link the binaries even if they already exist. The linking is also extremely slow. So just run the "check" target which includes all the binaries. + - name: Build all and run test run: | C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE% && make -j2 check diff --git a/.github/workflows/CI-mingw.yml b/.github/workflows/CI-mingw.yml index 1a6b23cfe..87ace921e 100644 --- a/.github/workflows/CI-mingw.yml +++ b/.github/workflows/CI-mingw.yml @@ -14,7 +14,7 @@ jobs: build_mingw: strategy: matrix: - os: [windows-2019] + os: [windows-2019] # fails to download with "windows-2022" arch: [x64] # TODO: fix x86 build? fail-fast: false @@ -28,14 +28,7 @@ jobs: with: platform: ${{ matrix.arch }} - - name: Build cppcheck - run: | - mingw32-make -j2 - - - name: Build test - run: | - mingw32-make -j2 testrunner - - - name: Run test + # MinGW will always link the binaries even if they already exist. The linking is also extremely slow. So just run the "check" target which includes all the binaries. + - name: Build all and run test run: | mingw32-make -j2 check