]> git.ipfire.org Git - thirdparty/openssl.git/blob - .github/workflows/ci.yml
Update dependencies for krb5 external test
[thirdparty/openssl.git] / .github / workflows / ci.yml
1 name: GitHub CI
2
3 on: [pull_request, push]
4
5 # for some reason, this does not work:
6 # variables:
7 # BUILDOPTS: "-j4"
8 # HARNESS_JOBS: "${HARNESS_JOBS:-4}"
9
10 # for some reason, this does not work:
11 # before_script:
12 # - make="make -s"
13
14 jobs:
15 check_update:
16 runs-on: ubuntu-latest
17 steps:
18 - name: install unifdef
19 run: |
20 sudo apt-get update
21 sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install unifdef
22 - uses: actions/checkout@v2
23 - name: config
24 run: ./config --banner=Configured --strict-warnings enable-fips && perl configdata.pm --dump
25 - name: make build_generated
26 run: make -s build_generated
27 - name: make update
28 run: make update
29 - name: git diff
30 run: git diff --exit-code
31
32 check_docs:
33 runs-on: ubuntu-latest
34 steps:
35 - uses: actions/checkout@v2
36 - name: config
37 run: ./config --banner=Configured --strict-warnings enable-fips && perl configdata.pm --dump
38 - name: make build_generated
39 run: make -s build_generated
40 - name: make doc-nits
41 run: make doc-nits
42 - name: make md-nits
43 run: |
44 sudo gem install mdl
45 make md-nits
46
47 # This checks that we use ANSI C language syntax and semantics.
48 # We are not as strict with libraries, but rather adapt to what's
49 # expected to be available in a certain version of each platform.
50 check-ansi:
51 runs-on: ubuntu-latest
52 steps:
53 - uses: actions/checkout@v2
54 - name: config
55 run: CPPFLAGS=-ansi ./config --banner=Configured no-asm no-makedepend enable-buildtest-c++ enable-fips --strict-warnings -D_DEFAULT_SOURCE && perl configdata.pm --dump
56 - name: make
57 run: make -s -j4
58
59 basic_gcc:
60 runs-on: ubuntu-latest
61 steps:
62 - uses: actions/checkout@v2
63 - name: config
64 run: ./config --banner=Configured enable-fips --strict-warnings && perl configdata.pm --dump
65 - name: make
66 run: make -s -j4
67 - name: make test
68 run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
69
70 basic_clang:
71 runs-on: ubuntu-latest
72 steps:
73 - uses: actions/checkout@v2
74 - name: config
75 run: CC=clang ./config --banner=Configured no-fips --strict-warnings && perl configdata.pm --dump
76 - name: make
77 run: make -s -j4
78 - name: make test
79 run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
80
81 minimal:
82 runs-on: ubuntu-latest
83 steps:
84 - uses: actions/checkout@v2
85 - name: config
86 run: ./config --banner=Configured --strict-warnings no-bulk no-pic no-asm -DOPENSSL_NO_SECURE_MEMORY -DOPENSSL_SMALL_FOOTPRINT && perl configdata.pm --dump
87 - name: make
88 run: make -j4 # verbose, so no -s here
89 - name: make test
90 run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
91
92 no-deprecated:
93 runs-on: ubuntu-latest
94 steps:
95 - uses: actions/checkout@v2
96 - name: config
97 run: ./config --banner=Configured --strict-warnings no-deprecated enable-fips && perl configdata.pm --dump
98 - name: make
99 run: make -s -j4
100 - name: make test
101 run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
102
103 no-shared:
104 strategy:
105 matrix:
106 os: [ ubuntu-latest, macos-latest ]
107 runs-on: ${{matrix.os}}
108 steps:
109 - uses: actions/checkout@v2
110 - name: config
111 run: ./config --banner=Configured --strict-warnings no-shared no-fips && perl configdata.pm --dump
112 - name: make
113 run: make -s -j4
114 - name: make test
115 run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
116
117 non-caching:
118 runs-on: ubuntu-latest
119 steps:
120 - uses: actions/checkout@v2
121 - name: config
122 run: ./config --banner=Configured --debug enable-asan enable-ubsan no-cached-fetch no-fips no-dtls no-tls1 no-tls1-method no-tls1_1 no-tls1_1-method no-async && perl configdata.pm --dump
123 - name: make
124 run: make -s -j4
125 - name: make test
126 run: make test HARNESS_JOBS=${HARNESS_JOBS:-4} OPENSSL_TEST_RAND_ORDER=0 TESTS="-test_fuzz* -test_ssl_* -test_evp -test_cmp_http -test_verify -test_cms -test_store -test_enc -[01][0-9]"
127
128 sanitizers:
129 runs-on: ubuntu-latest
130 steps:
131 - uses: actions/checkout@v2
132 - name: config
133 run: ./config --banner=Configured --debug enable-asan enable-ubsan enable-rc5 enable-md2 enable-ec_nistp_64_gcc_128 enable-fips && perl configdata.pm --dump
134 - name: make
135 run: make -s -j4
136 - name: make test
137 run: make test HARNESS_JOBS=${HARNESS_JOBS:-4} OPENSSL_TEST_RAND_ORDER=0
138
139 threads_sanitizer:
140 runs-on: ubuntu-latest
141 steps:
142 - uses: actions/checkout@v2
143 - name: config
144 run: CC=clang ./config --banner=Configured no-fips --strict-warnings -fsanitize=thread && perl configdata.pm --dump
145 - name: make
146 run: make -s -j4
147 - name: make test
148 run: make TESTS=test_threads test HARNESS_JOBS=${HARNESS_JOBS:-4}
149
150 enable_non-default_options:
151 runs-on: ubuntu-latest
152 steps:
153 - uses: actions/checkout@v2
154 - name: config
155 run: ./config --banner=Configured --strict-warnings no-ec enable-ssl-trace enable-zlib enable-zlib-dynamic enable-crypto-mdebug enable-crypto-mdebug-backtrace enable-egd enable-fips && perl configdata.pm --dump
156 - name: make
157 run: make -s -j4
158 - name: make test
159 run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
160
161 no-legacy:
162 runs-on: ubuntu-latest
163 steps:
164 - uses: actions/checkout@v2
165 - name: config
166 run: ./config --banner=Configured --strict-warnings no-legacy enable-fips && perl configdata.pm --dump
167 - name: make
168 run: make -s -j4
169 - name: make test
170 run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
171
172 legacy:
173 runs-on: ubuntu-latest
174 steps:
175 - uses: actions/checkout@v2
176 - name: config
177 run: ./config --banner=Configured -Werror --debug no-afalgeng no-shared enable-crypto-mdebug enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method enable-weak-ssl-ciphers enable-zlib enable-ec_nistp_64_gcc_128 no-fips && perl configdata.pm --dump
178 - name: make
179 run: make -s -j4
180 - name: make test
181 run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
182
183 buildtest:
184 runs-on: ubuntu-latest
185 steps:
186 - uses: actions/checkout@v2
187 - name: config
188 run: ./config --banner=Configured no-asm no-makedepend enable-buildtest-c++ enable-fips --strict-warnings -D_DEFAULT_SOURCE && perl configdata.pm --dump
189 - name: make
190 run: make -s -j4
191 - name: make test
192 run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
193
194 out-of-source-and-install:
195 strategy:
196 matrix:
197 os: [ubuntu-latest, macos-latest ]
198 runs-on: ${{matrix.os}}
199 steps:
200 - uses: actions/checkout@v2
201 - name: extra preparations
202 run: |
203 mkdir ./build
204 mkdir ./install
205 - name: config
206 run: ../config --banner=Configured enable-fips --strict-warnings --prefix=$(cd ../install; pwd) && perl configdata.pm --dump
207 working-directory: ./build
208 - name: make
209 run: make -s -j4
210 working-directory: ./build
211 - name: make test
212 run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
213 working-directory: ./build
214 - name: make install
215 run: make install
216 working-directory: ./build
217
218 external-tests:
219 runs-on: ubuntu-latest
220 steps:
221 - uses: actions/checkout@v2
222 with:
223 submodules: recursive
224 - name: package installs
225 run: |
226 sudo apt-get update
227 sudo apt-get -yq install bison gettext keyutils ldap-utils libldap2-dev libkeyutils-dev python3 python3-paste python3-pyrad slapd tcsh python3-virtualenv virtualenv python3-kdcproxy
228 - name: install cpanm and Test2::V0 for gost_engine testing
229 uses: perl-actions/install-with-cpanm@v1
230 with:
231 install: Test2::V0
232 - name: setup hostname workaround
233 run: sudo hostname localhost
234 - name: config
235 run: ./config --banner=Configured --strict-warnings --debug no-afalgeng enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method enable-weak-ssl-ciphers enable-zlib enable-ec_nistp_64_gcc_128 enable-external-tests no-fips && perl configdata.pm --dump
236 - name: make
237 run: make -s -j4
238 - name: test external gost-engine
239 run: make test TESTS="test_external_gost_engine"
240 - name: test external krb5
241 run: make test TESTS="test_external_krb5"
242
243 external-test-pyca:
244 runs-on: ubuntu-latest
245 strategy:
246 matrix:
247 RUST:
248 - 1.51.0
249 PYTHON:
250 - 3.9
251 steps:
252 - uses: actions/checkout@v2
253 with:
254 submodules: recursive
255 - name: Configure OpenSSL
256 run: ./config --banner=Configured --strict-warnings --debug enable-external-tests && perl configdata.pm --dump
257 - name: make
258 run: make -s -j4
259 - name: Setup Python
260 uses: actions/setup-python@v2.2.2
261 with:
262 python-version: ${{ matrix.PYTHON }}
263 - uses: actions-rs/toolchain@v1
264 with:
265 profile: minimal
266 toolchain: ${{ matrix.RUST }}
267 override: true
268 default: true
269 - name: test external pyca
270 run: make test TESTS="test_external_pyca" VERBOSE=1