• Home
  • Raw
  • Download

Lines Matching +full:cache +full:- +full:dependency +full:- +full:path

3 # SPDX-License-Identifier: curl
10 - master
11 - '*/ci'
12 paths-ignore:
13 - '**/*.md'
14 - '.circleci/**'
15 - 'appveyor.*'
16 - 'packages/**'
17 - 'plan9/**'
18 - 'projects/**'
19 - 'winbuild/**'
22 - master
23 paths-ignore:
24 - '**/*.md'
25 - '.circleci/**'
26 - 'appveyor.*'
27 - 'packages/**'
28 - 'plan9/**'
29 - 'projects/**'
30 - 'winbuild/**'
34 group: http3-${{ github.event.pull_request.number || github.sha }}
35 cancel-in-progress: true
40 MAKEFLAGS: -j 5
42 openssl-version: 3.4.0
44 quictls-version: 3.3.0
45 …# renovate: datasource=github-tags depName=gnutls/gnutls versioning=semver registryUrl=https://git…
46 gnutls-version: 3.8.8
47 …# renovate: datasource=github-tags depName=wolfSSL/wolfssl versioning=semver extractVersion=^v?(?<…
48 wolfssl-version: 5.7.6
49 …# renovate: datasource=github-tags depName=ngtcp2/nghttp3 versioning=semver registryUrl=https://gi…
50 nghttp3-version: 1.7.0
51 …# renovate: datasource=github-tags depName=ngtcp2/ngtcp2 versioning=semver registryUrl=https://git…
52 ngtcp2-version: 1.10.0
53 …# renovate: datasource=github-tags depName=nghttp2/nghttp2 versioning=semver registryUrl=https://g…
54 nghttp2-version: 1.64.0
55 …# renovate: datasource=github-tags depName=cloudflare/quiche versioning=semver registryUrl=https:/…
56 quiche-version: 0.23.2
59 build-cache:
60 runs-on: ubuntu-latest
63 - name: 'cache quictls'
64 uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
65 id: cache-quictls-no-deprecated
67 cache-name: cache-quictls-no-deprecated
69 path: ~/quictls/build
70 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.quictls-version }}-quic1
72 - name: 'cache gnutls'
73 uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
74 id: cache-gnutls
76 cache-name: cache-gnutls
78 path: ~/gnutls/build
79 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.gnutls-version }}
81 - name: 'cache wolfssl'
82 uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
83 id: cache-wolfssl
85 cache-name: cache-wolfssl
87 path: ~/wolfssl/build
88 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.wolfssl-version }}
90 - name: 'cache nghttp3'
91 uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
92 id: cache-nghttp3
94 cache-name: cache-nghttp3
96 path: ~/nghttp3/build
97 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.nghttp3-version }}
99 - name: 'cache ngtcp2'
100 uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
101 id: cache-ngtcp2
103 cache-name: cache-ngtcp2
105 path: ~/ngtcp2/build
106 …unner.os }}-http3-build-${{ env.cache-name }}-${{ env.ngtcp2-version }}-${{ env.quictls-version }}
108 - name: 'cache nghttp2'
109 uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
110 id: cache-nghttp2
112 cache-name: cache-nghttp2
114 path: ~/nghttp2/build
115 …unner.os }}-http3-build-${{ env.cache-name }}-${{ env.nghttp2-version }}-${{ env.quictls-version }…
117 - id: settings
119 steps.cache-quictls-no-deprecated.outputs.cache-hit != 'true' ||
120 steps.cache-gnutls.outputs.cache-hit != 'true' ||
121 steps.cache-wolfssl.outputs.cache-hit != 'true' ||
122 steps.cache-nghttp3.outputs.cache-hit != 'true' ||
123 steps.cache-ngtcp2.outputs.cache-hit != 'true' ||
124 steps.cache-nghttp2.outputs.cache-hit != 'true'
126 echo 'needs-build=true' >> $GITHUB_OUTPUT
128 - name: 'install build prereqs'
129 if: steps.settings.outputs.needs-build == 'true'
131 sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
132 sudo apt-get -o Dpkg::Use-Pty=0 update
133 sudo apt-get -o Dpkg::Use-Pty=0 install \
135 libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev libev-dev libc-ares-dev \
136 nettle-dev libp11-kit-dev libtspi-dev libunistring-dev guile-2.2-dev libtasn1-bin \
137 libtasn1-6-dev libidn2-0-dev gawk gperf libtss2-dev dns-root-data bison gtk-doc-tools \
138 texinfo texlive texlive-extra-utils autopoint libev-dev \
139 apache2 apache2-dev libnghttp2-dev
140 echo 'CC=gcc-12' >> $GITHUB_ENV
141 echo 'CXX=g++-12' >> $GITHUB_ENV
143 - name: 'build quictls'
144 if: steps.cache-quictls-no-deprecated.outputs.cache-hit != 'true'
147 …git clone --quiet --depth=1 -b openssl-${{ env.quictls-version }}-quic1 https://github.com/quictls…
149 … ./config no-deprecated --prefix=$PWD/build --libdir=lib no-makedepend no-apps no-docs no-tests
151 make -j1 install_sw
153 - name: 'build gnutls'
154 if: steps.cache-gnutls.outputs.cache-hit != 'true'
157 … git clone --quiet --depth=1 -b ${{ env.gnutls-version }} https://github.com/gnutls/gnutls.git
160 ./configure --disable-dependency-tracking --prefix=$PWD/build \
161 LDFLAGS="-Wl,-rpath,$PWD/build/lib -L$PWD/build/lib" \
162 --with-included-libtasn1 --with-included-unistring \
163 --disable-guile --disable-doc --disable-tests --disable-tools
167 - name: 'build wolfssl'
168 if: steps.cache-wolfssl.outputs.cache-hit != 'true'
171 …git clone --quiet --depth=1 -b v${{ env.wolfssl-version }}-stable https://github.com/wolfSSL/wolfs…
174 ./configure --disable-dependency-tracking --enable-all --enable-quic \
175 --disable-benchmark --disable-crypttests --disable-examples --prefix=$PWD/build
179 - name: 'build nghttp3'
180 if: steps.cache-nghttp3.outputs.cache-hit != 'true'
183 … git clone --quiet --depth=1 -b v${{ env.nghttp3-version }} https://github.com/ngtcp2/nghttp3
185 git submodule update --init --depth=1
186 autoreconf -fi
187 ./configure --disable-dependency-tracking --prefix=$PWD/build \
189 --enable-lib-only
193 - name: 'build ngtcp2'
194 if: steps.cache-ngtcp2.outputs.cache-hit != 'true'
197 git clone --quiet --depth=1 -b v${{ env.ngtcp2-version }} https://github.com/ngtcp2/ngtcp2
199 autoreconf -fi
200 ./configure --disable-dependency-tracking --prefix=$PWD/build \
202 --enable-lib-only --with-openssl --with-gnutls --with-wolfssl
205 - name: 'build nghttp2'
206 if: steps.cache-nghttp2.outputs.cache-hit != 'true'
209 … git clone --quiet --depth=1 -b v${{ env.nghttp2-version }} https://github.com/nghttp2/nghttp2
211 autoreconf -fi
212 ./configure --disable-dependency-tracking --prefix=$PWD/build \
214 LDFLAGS="-Wl,-rpath,$HOME/quictls/build/lib" \
215 --enable-http3
221 - build-cache
222 runs-on: 'ubuntu-latest'
223 timeout-minutes: 45
225 fail-fast: false
228 - name: quictls
230 configure: >-
231 LDFLAGS="-Wl,-rpath,$HOME/quictls/build/lib"
232--with-ngtcp2=$HOME/ngtcp2/build --enable-warnings --enable-werror --enable-debug --disable-ntlm
233 --with-test-nghttpx="$HOME/nghttp2/build/bin/nghttpx"
234 --with-openssl=$HOME/quictls/build --enable-ssls-export
236 - name: gnutls
238 configure: >-
239 LDFLAGS="-Wl,-rpath,$HOME/gnutls/build/lib"
240 --with-ngtcp2=$HOME/ngtcp2/build --enable-warnings --enable-werror --enable-debug
241 --with-test-nghttpx="$HOME/nghttp2/build/bin/nghttpx"
242 --with-gnutls=$HOME/gnutls/build --enable-ssls-export
244 - name: wolfssl
246 configure: >-
247 LDFLAGS="-Wl,-rpath,$HOME/wolfssl/build/lib"
248 --with-ngtcp2=$HOME/ngtcp2/build --enable-warnings --enable-werror --enable-debug
249 --with-test-nghttpx="$HOME/nghttp2/build/bin/nghttpx"
250 --with-wolfssl=$HOME/wolfssl/build
251 --enable-ech --enable-ssls-export
253 - name: wolfssl
255 generate: >-
256 -DCURL_USE_WOLFSSL=ON -DUSE_NGTCP2=ON -DENABLE_DEBUG=ON
257 -DTEST_NGHTTPX="$HOME/nghttp2/build/bin/nghttpx"
258 -DHTTPD_NGHTTPX="$HOME/nghttp2/build/bin/nghttpx"
259 -DUSE_ECH=ON
261 - name: openssl-quic
263 configure: >-
264 LDFLAGS="-Wl,-rpath,$HOME/openssl/build/lib64"
265 --enable-warnings --enable-werror --enable-debug --disable-ntlm
266 --with-test-nghttpx="$HOME/nghttp2/build/bin/nghttpx"
267 --with-openssl=$HOME/openssl/build --with-openssl-quic
268 --with-nghttp3=$HOME/nghttp3/build
270 - name: quiche
271 configure: >-
272 LDFLAGS="-Wl,-rpath,$HOME/quiche/target/release"
273 --with-openssl=$HOME/quiche/quiche/deps/boringssl/src
274 --enable-warnings --enable-werror --enable-debug
275 --with-quiche=$HOME/quiche/target/release
276 --with-test-nghttpx="$HOME/nghttp2/build/bin/nghttpx"
277 --with-ca-fallback
279 - name: quiche
281 generate: >-
282 -DOPENSSL_ROOT_DIR=$HOME/quiche/quiche/deps/boringssl/src -DENABLE_DEBUG=ON
283 -DUSE_QUICHE=ON
284 -DTEST_NGHTTPX="$HOME/nghttp2/build/bin/nghttpx"
285 -DHTTPD_NGHTTPX="$HOME/nghttp2/build/bin/nghttpx"
286 -DCURL_CA_FALLBACK=ON
289 - name: 'install prereqs'
291 sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
292 sudo apt-get -o Dpkg::Use-Pty=0 update
293 sudo apt-get -o Dpkg::Use-Pty=0 install \
294 libtool autoconf automake ninja-build pkgconf stunnel4 \
295 libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev libev-dev libc-ares-dev \
296 nettle-dev libp11-kit-dev libtspi-dev libunistring-dev guile-2.2-dev libtasn1-bin \
297 libtasn1-6-dev libidn2-0-dev gawk gperf libtss2-dev dns-root-data bison gtk-doc-tools \
298 texinfo texlive texlive-extra-utils autopoint libev-dev \
299 apache2 apache2-dev libnghttp2-dev vsftpd
300 python3 -m venv $HOME/venv
301 echo 'CC=gcc-12' >> $GITHUB_ENV
302 echo 'CXX=g++-12' >> $GITHUB_ENV
304 - name: 'cache quictls'
305 uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
306 id: cache-quictls-no-deprecated
308 cache-name: cache-quictls-no-deprecated
310 path: ~/quictls/build
311 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.quictls-version }}
312 fail-on-cache-miss: true
314 - name: 'cache gnutls'
316 uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
317 id: cache-gnutls
319 cache-name: cache-gnutls
321 path: ~/gnutls/build
322 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.gnutls-version }}
323 fail-on-cache-miss: true
325 - name: 'cache wolfssl'
327 uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
328 id: cache-wolfssl
330 cache-name: cache-wolfssl
332 path: ~/wolfssl/build
333 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.wolfssl-version }}
334 fail-on-cache-miss: true
336 - name: 'cache nghttp3'
337 uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
338 id: cache-nghttp3
340 cache-name: cache-nghttp3
342 path: ~/nghttp3/build
343 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.nghttp3-version }}
344 fail-on-cache-miss: true
346 - name: 'cache ngtcp2'
347 uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
348 id: cache-ngtcp2
350 cache-name: cache-ngtcp2
352 path: ~/ngtcp2/build
353 …unner.os }}-http3-build-${{ env.cache-name }}-${{ env.ngtcp2-version }}-${{ env.quictls-version }}
354 fail-on-cache-miss: true
356 - name: 'cache nghttp2'
357 uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
358 id: cache-nghttp2
360 cache-name: cache-nghttp2
362 path: ~/nghttp2/build
363 …unner.os }}-http3-build-${{ env.cache-name }}-${{ env.nghttp2-version }}-${{ env.quictls-version }…
364 fail-on-cache-miss: true
366 - name: 'cache openssl'
367 if: matrix.build.name == 'openssl-quic'
368 uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
369 id: cache-openssl
371 cache-name: cache-openssl
373 path: ~/openssl/build
374 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.openssl-version }}
376 - name: 'install openssl'
377 if: matrix.build.name == 'openssl-quic' && steps.cache-openssl.outputs.cache-hit != 'true'
379 …git clone --quiet --depth=1 -b openssl-${{ env.openssl-version }} https://github.com/openssl/opens…
381 ./config --prefix=$HOME/openssl/build no-makedepend no-apps no-docs no-tests
383 make -j1 install_sw
386 - name: 'cache quiche'
388 uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
389 id: cache-quiche
391 cache-name: cache-quiche
393 path: ~/quiche
394 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.quiche-version }}
396 - name: 'build quiche and boringssl'
397 if: matrix.build.name == 'quiche' && steps.cache-quiche.outputs.cache-hit != 'true'
400 …git clone --quiet --depth=1 -b ${{ env.quiche-version }} --recursive https://github.com/cloudflare…
402 #### Work-around https://github.com/curl/curl/issues/7927 #######
403 #### See https://github.com/alexcrichton/cmake-rs/issues/131 ####
404 sed -i -e 's/cmake = "0.1"/cmake = "=0.1.45"/' quiche/Cargo.toml
406 cargo build -v --package quiche --release --features ffi,pkg-config-meta,qlog --verbose
407 ln -s libquiche.so target/release/libquiche.so.0
408 mkdir -v quiche/deps/boringssl/src/lib
409 … ln -vnf $(find target/release -name libcrypto.a -o -name libssl.a) quiche/deps/boringssl/src/lib/
416 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
418 persist-credentials: false
420 - name: 'autoreconf'
422 run: autoreconf -fi
424 - name: 'configure'
426 if [ -n '${{ matrix.build.PKG_CONFIG_PATH }}' ]; then
429 if [ -n '${{ matrix.build.generate }}' ]; then
430 cmake -B . -G Ninja \
431 -DCMAKE_C_COMPILER_TARGET=$(uname -m)-pc-linux-gnu -DBUILD_STATIC_LIBS=ON \
432 -DCMAKE_UNITY_BUILD=ON -DCURL_TEST_BUNDLES=ON -DCURL_WERROR=ON \
435 …./configure --disable-dependency-tracking --enable-unity --enable-test-bundles --enable-warnings -…
439 - name: 'configure log'
443 - name: 'curl_config.h'
446 grep -F '#define' lib/curl_config.h | sort || true
448 - name: 'test configs'
453 - name: 'build'
455 if [ -n '${{ matrix.build.generate }}' ]; then
456 cmake --build . --verbose
461 - name: 'check curl -V output'
462 run: ./src/curl -V
464 - name: 'build tests'
466 if [ -n '${{ matrix.build.generate }}' ]; then
467 cmake --build . --verbose --target testdeps
469 make V=1 -C tests
472 - name: 'install test prereqs'
475 python3 -m pip install -r tests/requirements.txt
477 - name: 'run tests'
482 if [ -n '${{ matrix.build.generate }}' ]; then
483 cmake --build . --verbose --target test-ci
485 make V=1 test-ci
488 - name: 'install pytest prereqs'
491 python3 -m pip install -r tests/http/requirements.txt
493 - name: 'run pytest'
497 PYTEST_ADDOPTS: '--color=yes'
500 if [ -n '${{ matrix.build.generate }}' ]; then
501 cmake --build . --verbose --target curl-pytest-ci
503 make V=1 pytest-ci
506 - name: 'build examples'
508 if [ -n '${{ matrix.build.generate }}' ]; then
509 cmake --build . --verbose --target curl-examples