mirror of
https://github.com/curl/curl.git
synced 2026-08-10 18:10:54 +03:00
GHA: skip building certs, build more tests, one minor fix
- GHA/windows: disable building certs in the MSVC job that's not running tests. Saves 4-5 seconds for MSVC, makes logs shorter for the rests. - GHA/linux: build tests in two more jobs (LTO, CM Rustls), 5s each. - GHA/linux: skip 'install test prereqs' for `skiprun` jobs. (there were no such jobs before this patch.) Closes #18034
This commit is contained in:
parent
73d52567a0
commit
4072315990
2 changed files with 10 additions and 3 deletions
6
.github/workflows/linux.yml
vendored
6
.github/workflows/linux.yml
vendored
|
|
@ -179,7 +179,7 @@ jobs:
|
|||
|
||||
- name: 'openssl clang krb5 LTO'
|
||||
install_packages: zlib1g-dev libkrb5-dev clang
|
||||
install_steps: skipall
|
||||
install_steps: skiprun
|
||||
generate: -DCURL_USE_OPENSSL=ON -DCURL_USE_GSSAPI=ON -DENABLE_DEBUG=ON -DCURL_LTO=ON
|
||||
|
||||
- name: 'openssl !ipv6 !--libcurl !--digest-auth'
|
||||
|
|
@ -273,7 +273,7 @@ jobs:
|
|||
|
||||
- name: 'rustls'
|
||||
install_packages: libnghttp2-dev libldap-dev
|
||||
install_steps: rust rustls skipall pytest
|
||||
install_steps: rust rustls skiprun pytest
|
||||
generate: -DCURL_USE_RUSTLS=ON -DUSE_ECH=ON -DENABLE_DEBUG=ON
|
||||
|
||||
- name: 'IntelC openssl'
|
||||
|
|
@ -661,7 +661,7 @@ jobs:
|
|||
fi
|
||||
|
||||
- name: 'install test prereqs'
|
||||
if: ${{ !contains(matrix.build.install_steps, 'skipall') && matrix.build.container == null }}
|
||||
if: ${{ !contains(matrix.build.install_steps, 'skipall') && !contains(matrix.build.install_steps, 'skiprun') && matrix.build.container == null }}
|
||||
run: |
|
||||
[ -x ~/venv/bin/activate ] && source ~/venv/bin/activate
|
||||
python3 -m pip install -r tests/requirements.txt
|
||||
|
|
|
|||
7
.github/workflows/windows.yml
vendored
7
.github/workflows/windows.yml
vendored
|
|
@ -268,6 +268,7 @@ jobs:
|
|||
MATRIX_CONFIG: '${{ matrix.config }}'
|
||||
MATRIX_ENV: '${{ matrix.env }}'
|
||||
MATRIX_TYPE: '${{ matrix.type }}'
|
||||
TFLAGS: '${{ matrix.tflags }}'
|
||||
run: |
|
||||
if [ "${MATRIX_TEST}" = 'uwp' ]; then
|
||||
CPPFLAGS='-DWINSTORECOMPAT -DWINAPI_FAMILY=WINAPI_FAMILY_APP'
|
||||
|
|
@ -287,6 +288,7 @@ jobs:
|
|||
fi
|
||||
[ "${MATRIX_SYS}" = 'msys' ] && options+=' -D_CURL_PREFILL=ON'
|
||||
[ "${MATRIX_TEST}" = 'uwp' ] && options+=' -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0'
|
||||
[ "${TFLAGS}" = 'skiprun' ] && options+=' -D_CURL_SKIP_BUILD_CERTS=ON'
|
||||
[ "${_chkprefill}" = '_chkprefill' ] && options+=' -D_CURL_PREFILL=OFF'
|
||||
cmake -B "bld${_chkprefill}" -G Ninja ${options} \
|
||||
-DCMAKE_INSTALL_PREFIX="${HOME}"/curl-install \
|
||||
|
|
@ -498,10 +500,12 @@ jobs:
|
|||
MATRIX_CHKPREFILL: '${{ matrix.chkprefill }}'
|
||||
MATRIX_CONFIG: '${{ matrix.config }}'
|
||||
MATRIX_TYPE: '${{ matrix.type }}'
|
||||
TFLAGS: '${{ matrix.tflags }}'
|
||||
run: |
|
||||
PATH="/d/my-cache/${MATRIX_DIR}/bin:$PATH"
|
||||
for _chkprefill in '' ${MATRIX_CHKPREFILL}; do
|
||||
options=''
|
||||
[ "${TFLAGS}" = 'skiprun' ] && options+=' -D_CURL_SKIP_BUILD_CERTS=ON'
|
||||
[ "${_chkprefill}" = '_chkprefill' ] && options+=' -D_CURL_PREFILL=OFF'
|
||||
cmake -B "bld${_chkprefill}" -G Ninja ${options} \
|
||||
-DCMAKE_C_COMPILER=gcc \
|
||||
|
|
@ -624,6 +628,7 @@ jobs:
|
|||
-DCURL_WERROR=ON \
|
||||
-DCURL_USE_SCHANNEL=ON -DUSE_WIN32_IDN=ON \
|
||||
-DCURL_USE_LIBPSL=OFF \
|
||||
-D_CURL_SKIP_BUILD_CERTS=ON \
|
||||
${options}
|
||||
else
|
||||
mkdir bld && cd bld && ../configure --enable-unity --enable-warnings --enable-werror \
|
||||
|
|
@ -792,6 +797,7 @@ jobs:
|
|||
env:
|
||||
MATRIX_CHKPREFILL: '${{ matrix.chkprefill }}'
|
||||
MATRIX_CONFIG: '${{ matrix.config }}'
|
||||
TFLAGS: '${{ matrix.tflags }}'
|
||||
run: |
|
||||
[ -f "${MINGW_PREFIX}/include/zconf.h" ] && sed -i -E 's|(# +define +Z_HAVE_UNISTD_H)|/*\1*/|g' "${MINGW_PREFIX}/include/zconf.h" # Patch MSYS2 zconf.h for MSVC
|
||||
for _chkprefill in '' ${MATRIX_CHKPREFILL}; do
|
||||
|
|
@ -805,6 +811,7 @@ jobs:
|
|||
[ "${MATRIX_ARCH}" = 'arm64' ] && options+=' -A ARM64'
|
||||
[ "${MATRIX_ARCH}" = 'x64' ] && options+=' -A x64'
|
||||
[ "${MATRIX_ARCH}" = 'x86' ] && options+=' -A Win32'
|
||||
[ "${TFLAGS}" = 'skiprun' ] && options+=' -D_CURL_SKIP_BUILD_CERTS=ON'
|
||||
[ "${_chkprefill}" = '_chkprefill' ] && options+=' -D_CURL_PREFILL=OFF'
|
||||
if [ -n "${MATRIX_INSTALL_VCPKG}" ]; then
|
||||
options+=" -DCMAKE_TOOLCHAIN_FILE=$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue