123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- # Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
- #
- # SPDX-License-Identifier: curl
- name: configure-vs-cmake
- 'on':
- push:
- branches:
- - master
- paths:
- - '*.ac'
- - '**/*.m4'
- - '**/CMakeLists.txt'
- - 'lib/curl_config.h.cmake'
- - '.github/scripts/cmp-config.pl'
- - '.github/workflows/configure-vs-cmake.yml'
- pull_request:
- branches:
- - master
- paths:
- - '*.ac'
- - '**/*.m4'
- - '**/CMakeLists.txt'
- - 'lib/curl_config.h.cmake'
- - '.github/scripts/cmp-config.pl'
- - '.github/workflows/configure-vs-cmake.yml'
- permissions: {}
- jobs:
- check-linux:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- - name: run configure --with-openssl
- run: |
- autoreconf -fi
- export PKG_CONFIG_DEBUG_SPEW=1
- mkdir bld-am && cd bld-am && ../configure --enable-static=no --with-openssl --without-libpsl --without-brotli --without-zstd
- - name: run cmake
- run: |
- cmake -B bld-cm -DCURL_USE_LIBPSL=OFF
- - name: 'configure log'
- run: cat bld-am/config.log 2>/dev/null || true
- - name: 'cmake log'
- run: cat bld-cm/CMakeFiles/CMakeConfigureLog.yaml 2>/dev/null || true
- - name: compare generated curl_config.h files
- run: ./.github/scripts/cmp-config.pl bld-am/lib/curl_config.h bld-cm/lib/curl_config.h
- - name: compare generated libcurl.pc files
- run: ./.github/scripts/cmp-pkg-config.sh bld-am/libcurl.pc bld-cm/libcurl.pc
- - name: compare generated curl-config files
- run: ./.github/scripts/cmp-pkg-config.sh bld-am/curl-config bld-cm/curl-config
- check-macos:
- runs-on: macos-latest
- steps:
- - name: install packages
- run: |
- while [[ $? == 0 ]]; do for i in 1 2 3; do brew update && brew install libtool autoconf automake && break 2 || { echo Error: wait to try again; sleep 10; } done; false Too many retries; done
- - name: 'toolchain versions'
- run: |
- echo '::group::brew packages installed'; ls -l "$(brew --prefix)/opt"; echo '::endgroup::'
- - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- - name: run configure --with-openssl
- run: |
- autoreconf -fi
- export PKG_CONFIG_DEBUG_SPEW=1
- mkdir bld-am && cd bld-am && ../configure --enable-static=no --with-openssl --without-libpsl --disable-ldap
- - name: run cmake
- run: |
- cmake -B bld-cm -DCURL_USE_LIBPSL=OFF -DCURL_DISABLE_LDAP=ON \
- "-DCMAKE_C_COMPILER_TARGET=$(uname -m | sed 's/arm64/aarch64/')-apple-darwin$(uname -r)" \
- -DCURL_USE_LIBSSH2=OFF
- - name: 'configure log'
- run: cat bld-am/config.log 2>/dev/null || true
- - name: 'cmake log'
- run: cat bld-cm/CMakeFiles/CMakeConfigureLog.yaml 2>/dev/null || true
- - name: compare generated curl_config.h files
- run: ./.github/scripts/cmp-config.pl bld-am/lib/curl_config.h bld-cm/lib/curl_config.h
- - name: compare generated libcurl.pc files
- run: ./.github/scripts/cmp-pkg-config.sh bld-am/libcurl.pc bld-cm/libcurl.pc
- - name: compare generated curl-config files
- run: ./.github/scripts/cmp-pkg-config.sh bld-am/curl-config bld-cm/curl-config
- check-windows:
- runs-on: ubuntu-latest
- env:
- TRIPLET: 'x86_64-w64-mingw32'
- steps:
- - name: install packages
- run: sudo apt-get --quiet 2 --option Dpkg::Use-Pty=0 install mingw-w64
- - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- - name: run configure --with-schannel
- run: |
- autoreconf -fi
- export PKG_CONFIG_DEBUG_SPEW=1
- mkdir bld-am && cd bld-am && ../configure --enable-static=no --with-schannel --without-libpsl --host=${TRIPLET}
- - name: run cmake
- run: |
- cmake -B bld-cm -DCURL_USE_SCHANNEL=ON -DCURL_USE_LIBPSL=OFF \
- -DCMAKE_SYSTEM_NAME=Windows \
- -DCMAKE_C_COMPILER_TARGET=${TRIPLET} \
- -DCMAKE_C_COMPILER=${TRIPLET}-gcc
- - name: 'configure log'
- run: cat bld-am/config.log 2>/dev/null || true
- - name: 'cmake log'
- run: cat bld-cm/CMakeFiles/CMakeConfigureLog.yaml 2>/dev/null || true
- - name: compare generated curl_config.h files
- run: ./.github/scripts/cmp-config.pl bld-am/lib/curl_config.h bld-cm/lib/curl_config.h
- - name: compare generated libcurl.pc files
- run: ./.github/scripts/cmp-pkg-config.sh bld-am/libcurl.pc bld-cm/libcurl.pc
- - name: compare generated curl-config files
- run: ./.github/scripts/cmp-pkg-config.sh bld-am/curl-config bld-cm/curl-config
|