17
17
CLANGFORMAT : clang-format-18
18
18
runs-on : ubuntu-latest
19
19
steps :
20
- - uses : actions/checkout@v2.3.4
20
+ - uses : actions/checkout@v4.2.2
21
21
with :
22
22
fetch-depth : 2
23
23
- name : Install clang-format-18
41
41
- nasm
42
42
runs-on : ${{ matrix.os }}
43
43
steps :
44
- - uses : actions/checkout@v2.3.4
44
+ - uses : actions/checkout@v4.2.2
45
45
- name : Install build dependencies (Linux)
46
46
run : sudo apt install ${{ matrix.assembler }}
47
47
if : runner.os == 'Linux'
@@ -58,14 +58,86 @@ jobs:
58
58
- name : Run extended tests
59
59
run : bash tools/test_extended.sh
60
60
61
+ run_tests_mingw_linux_64 :
62
+ needs : check_format
63
+ runs-on : ubuntu-latest
64
+ steps :
65
+
66
+ - name : Install build dependencies (Linux)
67
+ run : sudo apt install nasm mingw-w64
68
+ - name : Build
69
+ shell : bash
70
+ run : |
71
+ make -j $(nproc) -f Makefile.unx programs/igzip tests arch=mingw host_cpu=x86_64
72
+ # wine does not seem available, hence cannot run tests.
73
+
74
+ run_tests_mingw_linux_32 :
75
+ needs : check_format
76
+ runs-on : ubuntu-latest
77
+ steps :
78
+
79
+ - name : Install build dependencies (Linux)
80
+ run : sudo apt install nasm mingw-w64
81
+ - name : Build
82
+ shell : bash
83
+ run : |
84
+ make -j $(nproc) -f Makefile.unx programs/igzip tests arch=mingw host_cpu=base_aliases CC=i686-w64-mingw32-gcc
85
+
86
+ run_tests_mingw_windows_64 :
87
+ needs : check_format
88
+ runs-on : windows-latest
89
+ steps :
90
+
91
+ - name : Install nasm
92
+
93
+ - name : Build
94
+ shell : bash
95
+ run : |
96
+ make -j $(nproc) -f Makefile.unx programs/igzip tests SIM= arch=mingw host_cpu=x86_64 AR=x86_64-w64-mingw32-gcc-ar
97
+ - name : Run tests
98
+ shell : bash
99
+ run : |
100
+ # autoconf is missing, hence simulates test_checks.sh
101
+ make -j $(nproc) -f Makefile.unx check D=TEST_SEED=0 SIM= arch=mingw host_cpu=x86_64 AR=x86_64-w64-mingw32-gcc-ar
102
+ - name : Run extended tests
103
+ shell : bash
104
+ run : |
105
+ # simulates test_extended.sh
106
+ make -j $(nproc) -f Makefile.unx perf D=TEST_SEED=0 SIM= arch=mingw host_cpu=x86_64 AR=x86_64-w64-mingw32-gcc-ar
107
+ make -j $(nproc) -f Makefile.unx test D=TEST_SEED=0 SIM= arch=mingw host_cpu=x86_64 AR=x86_64-w64-mingw32-gcc-ar
108
+
109
+ # seems like i686-w64-mingw32-gcc is not available on windows runner.
110
+
61
111
run_tests_windows :
62
112
needs : check_format
63
113
runs-on : windows-latest
64
114
steps :
65
- - uses : actions/checkout@v2.3.4
115
+ - uses : actions/checkout@v4.2.2
66
116
- name : Set MSVC developer prompt
67
- uses : ilammy/msvc-dev-cmd@v1.6 .0
117
+ uses : ilammy/msvc-dev-cmd@v1.13 .0
68
118
- name : Install nasm
69
- uses : ilammy/setup-nasm@v1.2.0
119
+ uses : ilammy/setup-nasm@v1.5.2
70
120
- name : Build
71
- run : nmake -f Makefile.nmake
121
+ run : |
122
+ nmake -f Makefile.nmake || exit /b 1
123
+ nmake checks -f Makefile.nmake || exit /b 1
124
+ nmake perfs -f Makefile.nmake || exit /b 1
125
+ - name : Run perf apps
126
+ run : nmake perf -f Makefile.nmake || exit /b 1
127
+ - name : Run checks
128
+ run : nmake check -f Makefile.nmake || exit /b 1
129
+
130
+ run_tests_linux-riscv64-v :
131
+ needs : check_format
132
+ runs-on : run_tests_linux-riscv64-v
133
+ steps :
134
+
135
+ - name : Build
136
+ run : |
137
+ ./autogen.sh
138
+ ./configure
139
+ bash -c 'make -j $(nproc)'
140
+ - name : Run tests
141
+ run : bash tools/test_checks.sh
142
+ - name : Run extended tests
143
+ run : bash tools/test_extended.sh
0 commit comments