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:
parent
6eab3cb8bd
commit
05a1e92e35
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue