speed up MinGW and Cygwin CI builds by avoiding repeated linking (#4274)

* speed up MinGW and Cygwin CI builds by avoiding repeated linking

* updated some CI jobs to `windows-2022`
This commit is contained in:
Oliver Stöneberg 2022-07-13 21:09:07 +02:00 committed by GitHub
parent 6eab3cb8bd
commit 05a1e92e35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 20 deletions

View File

@ -14,7 +14,7 @@ jobs:
build_cygwin: build_cygwin:
strategy: strategy:
matrix: matrix:
os: [windows-2019] os: [windows-2022]
arch: [x64, x86] arch: [x64, x86]
include: include:
- platform: 'x86_64' - platform: 'x86_64'
@ -33,15 +33,8 @@ jobs:
platform: ${{ matrix.arch }} platform: ${{ matrix.arch }}
packages: ${{ matrix.packages }} packages: ${{ matrix.packages }}
- name: Build cppcheck # 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.
run: | - name: Build all and run test
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
run: | run: |
C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE% && make -j2 check C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE% && make -j2 check

View File

@ -14,7 +14,7 @@ jobs:
build_mingw: build_mingw:
strategy: strategy:
matrix: matrix:
os: [windows-2019] os: [windows-2019] # fails to download with "windows-2022"
arch: [x64] # TODO: fix x86 build? arch: [x64] # TODO: fix x86 build?
fail-fast: false fail-fast: false
@ -28,14 +28,7 @@ jobs:
with: with:
platform: ${{ matrix.arch }} platform: ${{ matrix.arch }}
- name: Build cppcheck # 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.
run: | - name: Build all and run test
mingw32-make -j2
- name: Build test
run: |
mingw32-make -j2 testrunner
- name: Run test
run: | run: |
mingw32-make -j2 check mingw32-make -j2 check