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
Copy file name to clipboardExpand all lines: .github/workflows/CI-cygwin.yml
+11-5Lines changed: 11 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ on:
7
7
branches:
8
8
- 'main'
9
9
- 'releases/**'
10
+
- '2.*'
10
11
tags:
11
12
- '2.*'
12
13
pull_request:
@@ -19,11 +20,13 @@ defaults:
19
20
shell: cmd
20
21
21
22
jobs:
23
+
# TODO: add CMake build
22
24
build_cygwin:
23
25
strategy:
24
26
matrix:
25
-
os: [windows-2022]
26
-
arch: [x64]
27
+
# only use the latest windows-* as the installed toolchain is identical
28
+
os: [windows-2025]
29
+
platform: [x86_64]
27
30
include:
28
31
- platform: 'x86_64'
29
32
packages: |
@@ -34,18 +37,21 @@ jobs:
34
37
runs-on: ${{ matrix.os }}
35
38
36
39
steps:
37
-
- uses: actions/checkout@v3
40
+
- uses: actions/checkout@v4
41
+
with:
42
+
persist-credentials: false
38
43
39
44
- name: Set up Cygwin
40
45
uses: cygwin/cygwin-install-action@master
41
46
with:
42
-
platform: ${{ matrix.arch }}
47
+
site: https://mirrors.cicku.me/cygwin/
48
+
platform: ${{ matrix.platform }}
43
49
packages: ${{ matrix.packages }}
44
50
45
51
# 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.
46
52
- name: Build all and run test
47
53
run: |
48
-
C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE% && make VERBOSE=1 -j2 check
54
+
C:\cygwin\bin\bash.exe -l -c cd %GITHUB_WORKSPACE% && make VERBOSE=1 -j%NUMBER_OF_PROCESSORS% CXXOPTS="-Werror" test
Copy file name to clipboardExpand all lines: .github/workflows/CI-mingw.yml
+19-15Lines changed: 19 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ on:
7
7
branches:
8
8
- 'main'
9
9
- 'releases/**'
10
+
- '2.*'
10
11
tags:
11
12
- '2.*'
12
13
pull_request:
@@ -19,53 +20,56 @@ defaults:
19
20
shell: msys2 {0}
20
21
21
22
jobs:
23
+
# TODO: add CMake build
22
24
build_mingw:
23
25
strategy:
24
26
matrix:
25
-
# the MinGW installation in windows-2019 is supposed to be 8.1 but it is 12.2
26
-
# 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
27
-
os: [windows-2019]
27
+
# only use the latest windows-* as the installed toolchain is identical
28
+
os: [windows-2025]
28
29
fail-fast: false
29
30
30
31
runs-on: ${{ matrix.os }}
31
32
33
+
timeout-minutes: 19# max + 3*std of the last 7K runs
34
+
32
35
steps:
33
-
- uses: actions/checkout@v3
36
+
- uses: actions/checkout@v4
37
+
with:
38
+
persist-credentials: false
34
39
35
40
- name: Set up MSYS2
36
41
uses: msys2/setup-msys2@v2
37
42
with:
38
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."
0 commit comments