You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# only use the latest windows-* as the installed toolchain is identical
28
+
os: [windows-2025]
29
+
platform: [x86_64]
29
30
include:
30
31
- platform: 'x86_64'
31
32
packages: |
@@ -36,18 +37,20 @@ jobs:
36
37
runs-on: ${{ matrix.os }}
37
38
38
39
steps:
39
-
- uses: actions/checkout@v3
40
+
- uses: actions/checkout@v4
41
+
with:
42
+
persist-credentials: false
40
43
41
44
- name: Set up Cygwin
42
45
uses: cygwin/cygwin-install-action@master
43
46
with:
44
-
platform: ${{ matrix.arch }}
47
+
platform: ${{ matrix.platform }}
45
48
packages: ${{ matrix.packages }}
46
49
47
50
# 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.
48
51
- name: Build all and run test
49
52
run: |
50
-
C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE% && make VERBOSE=1 -j2 check
53
+
C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE% && make VERBOSE=1 -j%NUMBER_OF_PROCESSORS% CXXOPTS="-Werror" test
# the MinGW installation in windows-2019 is supposed to be 8.1 but it is 12.2
28
-
# the MinGW installation in windows-2022 is not including all necessary packages by default, so just use the older image instead - package versions are he same
29
-
os: [windows-2019]
27
+
# only use the latest windows-* as the installed toolchain is identical
28
+
os: [windows-2025]
30
29
fail-fast: false
31
30
32
31
runs-on: ${{ matrix.os }}
33
32
33
+
timeout-minutes: 19# max + 3*std of the last 7K runs
34
+
34
35
steps:
35
-
- uses: actions/checkout@v3
36
+
- uses: actions/checkout@v4
37
+
with:
38
+
persist-credentials: false
36
39
37
40
- name: Set up MSYS2
38
41
uses: msys2/setup-msys2@v2
39
42
with:
40
43
release: false # use pre-installed
44
+
# TODO: install mingw-w64-x86_64-make and use mingw32.make instead - currently fails with "Windows Subsystem for Linux has no installed distributions."
41
45
install: >-
42
46
mingw-w64-x86_64-lld
43
47
mingw-w64-x86_64-ccache
48
+
make
49
+
mingw-w64-x86_64-gcc
44
50
45
51
- name: ccache
46
52
uses: hendrikmuhs/ccache-action@v1.2
@@ -51,22 +57,19 @@ jobs:
51
57
run: |
52
58
export PATH="/mingw64/lib/ccache/bin:$PATH"
53
59
# set RDYNAMIC to work around broken MinGW detection
54
-
make VERBOSE=1 RDYNAMIC=-lshlwapi -j2 cppcheck
55
-
env:
56
-
LDFLAGS: -fuse-ld=lld # use lld for faster linking
60
+
# use lld for faster linking
61
+
make VERBOSE=1 RDYNAMIC=-lshlwapi LDOPTS=-fuse-ld=lld -j$(nproc) CXXOPTS="-Werror" cppcheck
57
62
58
63
- name: Build test
59
64
run: |
60
65
export PATH="/mingw64/lib/ccache/bin:$PATH"
61
66
# set RDYNAMIC to work around broken MinGW detection
62
-
make VERBOSE=1 RDYNAMIC=-lshlwapi -j2 testrunner
63
-
env:
64
-
LDFLAGS: -fuse-ld=lld # use lld for faster linking
67
+
# use lld for faster linking
68
+
make VERBOSE=1 RDYNAMIC=-lshlwapi LDOPTS=-fuse-ld=lld -j$(nproc) CXXOPTS="-Werror" testrunner
65
69
66
70
- name: Run test
67
71
run: |
68
72
export PATH="/mingw64/lib/ccache/bin:$PATH"
69
73
# set RDYNAMIC to work around broken MinGW detection
70
-
make VERBOSE=1 RDYNAMIC=-lshlwapi -j2 check
71
-
env:
72
-
LDFLAGS: -fuse-ld=lld # use lld for faster linking
74
+
# use lld for faster linking
75
+
make VERBOSE=1 RDYNAMIC=-lshlwapi LDOPTS=-fuse-ld=lld -j$(nproc) CXXOPTS="-Werror" test
0 commit comments