1
- name : generic-dev
1
+ name : dev-short-tests
2
+ # Faster tests: mostly build tests, along with some other
3
+ # misc tests
4
+
5
+ concurrency :
6
+ group : fast-${{ github.ref }}
7
+ cancel-in-progress : true
2
8
3
9
on :
4
10
pull_request :
5
11
branches : [ dev, release, actionsTest ]
6
12
7
13
jobs :
8
-
9
- # Dev PR jobs that still have to be migrated from travis
10
- #
11
- # versionTag (only on release tags)
12
- # valgrindTest (keeps failing for some reason. need investigation)
13
- # staticAnalyze (need trusty so need self-hosted)
14
- # pcc-fuzz: (need trusty so need self-hosted)
15
- # min-decomp-macros (flakey)
16
- #
17
- # setting up self-hosted is pretty straightforward, but
18
- # I need admins permissions to the repo for that it looks like
19
- # So I'm tabling that for now
20
- #
21
- # The release branch exclusive jobs will be in a separate
22
- # workflow file (the osx tests and meson build that is)
23
-
24
- benchmarking :
14
+ linux-kernel :
25
15
runs-on : ubuntu-latest
26
16
steps :
27
17
- uses : actions/checkout@v2
28
- - name : make benchmarking
29
- run : make benchmarking
18
+ - name : linux kernel, library + build + test
19
+ run : make -C contrib/linux-kernel test CFLAGS="-Werror -Wunused-const-variable -Wunused-but-set-variable"
30
20
31
- test :
21
+ benchmarking :
32
22
runs-on : ubuntu-latest
33
- env :
34
- DEVNULLRIGHTS : 1
35
- READFROMBLOCKDEVICE : 1
36
23
steps :
37
24
- uses : actions/checkout@v2
38
- - name : make test
39
- run : make test
25
+ - name : make benchmarking
26
+ run : make benchmarking
40
27
41
28
check-32bit : # designed to catch https://github.com/facebook/zstd/issues/2428
42
29
runs-on : ubuntu-latest
62
49
# candidate test (to check) : underlink test
63
50
# LDFLAGS=-Wl,--no-undefined : will make the linker fail if dll is underlinked
64
51
65
- gcc-8-asan-ubsan-testzstd :
66
- runs-on : ubuntu-latest
67
- steps :
68
- - uses : actions/checkout@v2
69
- - name : gcc-8 + ASan + UBSan + Test Zstd
70
- run : |
71
- make gcc8install
72
- CC=gcc-8 CFLAGS="-Werror" make -j all
73
- make clean
74
- CC=gcc-8 make -j uasan-test-zstd </dev/null V=1
75
-
76
- gcc-asan-ubsan-testzstd-32bit :
77
- runs-on : ubuntu-latest
78
- steps :
79
- - uses : actions/checkout@v2
80
- - name : ASan + UBSan + Test Zstd, 32bit mode
81
- run : |
82
- make libc6install
83
- CFLAGS="-Werror -m32" make -j all32
84
- make clean
85
- make -j uasan-test-zstd32 V=1
86
-
87
- clang-msan-testzstd :
88
- runs-on : ubuntu-latest
89
- steps :
90
- - uses : actions/checkout@v2
91
- - name : clang + MSan + Test Zstd
92
- run : |
93
- sudo apt-get update
94
- sudo apt-get install clang
95
- CC=clang make msan-test-zstd HAVE_ZLIB=0 HAVE_LZ4=0 HAVE_LZMA=0 V=1
96
-
97
- # Note : external libraries must be turned off when using MSAN tests,
98
- # because they are not msan-instrumented,
99
- # so any data coming from these libraries is always considered "uninitialized"
100
-
101
52
cmake-build-and-test-check :
102
53
runs-on : ubuntu-latest
103
54
steps :
@@ -109,44 +60,6 @@ jobs:
109
60
cd "../zstd source"
110
61
FUZZERTEST=-T1mn ZSTREAM_TESTTIME=-T1mn make cmakebuild
111
62
112
- gcc-8-asan-ubsan-fuzz :
113
- runs-on : ubuntu-latest
114
- steps :
115
- - uses : actions/checkout@v2
116
- - name : gcc-8 + ASan + UBSan + Fuzz Test
117
- run : |
118
- make gcc8install
119
- CC=gcc-8 FUZZER_FLAGS="--long-tests" make clean uasan-fuzztest
120
-
121
- gcc-asan-ubsan-fuzz32 :
122
- runs-on : ubuntu-latest
123
- steps :
124
- - uses : actions/checkout@v2
125
- - name : ASan + UBSan + Fuzz Test 32bit
126
- run : |
127
- make libc6install
128
- CFLAGS="-O2 -m32" FUZZER_FLAGS="--long-tests" make uasan-fuzztest
129
-
130
- clang-msan-fuzz :
131
- runs-on : ubuntu-latest
132
- steps :
133
- - uses : actions/checkout@v2
134
- - name : clang + MSan + Fuzz Test
135
- run : |
136
- sudo apt-get update
137
- sudo apt-get install clang
138
- CC=clang FUZZER_FLAGS="--long-tests" make clean msan-fuzztest
139
-
140
- asan-ubsan-msan-regression :
141
- runs-on : ubuntu-latest
142
- steps :
143
- - uses : actions/checkout@v2
144
- - name : ASan + UBSan + MSan + Regression Test
145
- run : |
146
- make -j uasanregressiontest
147
- make clean
148
- make -j msanregressiontest
149
-
150
63
cpp-gnu90-c99-compatibility :
151
64
runs-on : ubuntu-latest
152
65
steps :
@@ -180,15 +93,6 @@ jobs:
180
93
make arminstall
181
94
make armbuild
182
95
183
- armfuzz :
184
- runs-on : ubuntu-latest
185
- steps :
186
- - uses : actions/checkout@v2
187
- - name : Qemu ARM emulation + Fuzz Test
188
- run : |
189
- make arminstall
190
- make armfuzz
191
-
192
96
bourne-shell :
193
97
runs-on : ubuntu-latest
194
98
steps :
@@ -199,6 +103,65 @@ jobs:
199
103
tar -xf shellcheck-v0.7.1.linux.x86_64.tar.xz
200
104
shellcheck-v0.7.1/shellcheck --shell=sh --severity=warning --exclude=SC2010 tests/playTests.sh
201
105
106
+ zlib-wrapper :
107
+ runs-on : ubuntu-latest
108
+ steps :
109
+ - uses : actions/checkout@v2
110
+ - name : zlib wrapper test
111
+ run : |
112
+ make valgrindinstall
113
+ make -C zlibWrapper test
114
+ make -C zlibWrapper valgrindTest
115
+
116
+ lz4-threadpool-partial-libs :
117
+ runs-on : ubuntu-latest
118
+ steps :
119
+ - uses : actions/checkout@v2
120
+ - name : LZ4, thread pool, and partial libs testslib wrapper test
121
+ run : |
122
+ make lz4install
123
+ make -C tests test-lz4
124
+ make check < /dev/null | tee # mess with lz4 console detection
125
+ make clean
126
+ make -C tests test-pool
127
+ make clean
128
+ bash tests/libzstd_partial_builds.sh
129
+
130
+ gcc-make-tests-32bit :
131
+ runs-on : ubuntu-latest
132
+ steps :
133
+ - uses : actions/checkout@v2
134
+ - name : Make all, 32bit mode
135
+ run : |
136
+ make libc6install
137
+ CFLAGS="-Werror -m32" make -j all32
138
+
139
+ gcc-8-make :
140
+ runs-on : ubuntu-latest
141
+ steps :
142
+ - uses : actions/checkout@v2
143
+ - name : gcc-8 build
144
+ run : |
145
+ make gcc8install
146
+ CC=gcc-8 CFLAGS="-Werror" make -j all
147
+
148
+ visual-2015 :
149
+ # only GH actions windows-2016 contains VS 2015
150
+ runs-on : windows-2016
151
+ strategy :
152
+ matrix :
153
+ platform : [x64, Win32]
154
+ configuration : [Debug, Release]
155
+ steps :
156
+ - uses : actions/checkout@v2
157
+ - name : Add MSBuild to PATH
158
+
159
+ - name : Build
160
+ working-directory : ${{env.GITHUB_WORKSPACE}}
161
+ run : >
162
+ msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v140
163
+ /t:Clean,Build /p:Platform=${{matrix.platform}} /p:Configuration=${{matrix.configuration}}
164
+
202
165
# For reference : icc tests
203
166
# icc tests are currently failing on Github Actions, likely to issues during installation stage
204
167
# To be fixed later
0 commit comments