mirror of
https://github.com/curl/curl.git
synced 2026-06-03 23:14:15 +03:00
GHA/linux, http3-linux: add CMake support, sync steps, other improvements
- use shallow clone for submodules. - reduce total job timeout from 90/60 -> 45 minutes. - use `$HOME` instead of literal. - http3-linux: sync step yaml order with linux.yml. - http3-linux: add cmake + ninja support like in linux.yml. - http3-linux: dump confgure log, test config, curl -V like in linux.yml. - http3-linux: skip restoring gnutls and wolfssl when not used. - dump `curl_config.h`. - fold a long line. Closes #15242
This commit is contained in:
parent
5b2d6448bb
commit
36bd807475
2 changed files with 92 additions and 29 deletions
14
.github/workflows/linux.yml
vendored
14
.github/workflows/linux.yml
vendored
|
|
@ -63,7 +63,7 @@ jobs:
|
|||
name: ${{ matrix.build.generate && 'CM' || 'AM' }} ${{ matrix.build.name }}
|
||||
runs-on: 'ubuntu-latest'
|
||||
container: ${{ matrix.build.container }}
|
||||
timeout-minutes: 90
|
||||
timeout-minutes: 45
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
|
@ -260,7 +260,10 @@ jobs:
|
|||
|
||||
- if: startsWith(matrix.build.container, 'alpine')
|
||||
run: |
|
||||
apk add --no-cache build-base autoconf automake libtool perl openssl-dev libssh2-dev zlib-dev brotli-dev zstd-dev libidn2-dev openldap-dev heimdal-dev libpsl-dev py3-impacket py3-asn1 py3-six py3-pycryptodomex perl-time-hires openssh stunnel sudo git
|
||||
apk add --no-cache build-base autoconf automake libtool perl openssl-dev libssh2-dev \
|
||||
zlib-dev brotli-dev zstd-dev libidn2-dev openldap-dev heimdal-dev libpsl-dev \
|
||||
py3-impacket py3-asn1 py3-six py3-pycryptodomex \
|
||||
perl-time-hires openssh stunnel sudo git
|
||||
name: 'install dependencies'
|
||||
|
||||
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4
|
||||
|
|
@ -379,7 +382,7 @@ jobs:
|
|||
run: |
|
||||
git clone --quiet --depth=1 -b v${{ env.mbedtls-version }} https://github.com/Mbed-TLS/mbedtls
|
||||
cd mbedtls
|
||||
git submodule update --init
|
||||
git submodule update --init --depth=1
|
||||
cmake -B . -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=$HOME/mbedtls \
|
||||
-DENABLE_PROGRAMS=OFF -DENABLE_TESTING=OFF
|
||||
cmake --build .
|
||||
|
|
@ -583,6 +586,11 @@ jobs:
|
|||
if: ${{ !cancelled() }}
|
||||
run: cat config.log CMakeFiles/CMakeConfigureLog.yaml 2>/dev/null || true
|
||||
|
||||
- name: 'curl_config.h'
|
||||
run: |
|
||||
echo '::group::raw'; cat lib/curl_config.h || true; echo '::endgroup::'
|
||||
cat lib/curl_config.h | grep -F '#define' | sort || true
|
||||
|
||||
- name: 'test configs'
|
||||
run: |
|
||||
cat tests/config || true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue