2023-12-11 20:30:44 -05:00
|
|
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: curl
|
|
|
|
|
|
|
|
name: configure-vs-cmake
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-05-15 15:20:32 -04:00
|
|
|
- master
|
2023-12-11 20:30:44 -05:00
|
|
|
paths:
|
2024-05-15 15:20:32 -04:00
|
|
|
- '*.ac'
|
|
|
|
- '**/*.m4'
|
|
|
|
- '**/CMakeLists.txt'
|
|
|
|
- 'lib/curl_config.h.cmake'
|
|
|
|
- 'scripts/cmp-config.pl'
|
2023-12-11 20:30:44 -05:00
|
|
|
|
|
|
|
pull_request:
|
|
|
|
branches:
|
2024-05-15 15:20:32 -04:00
|
|
|
- master
|
2023-12-11 20:30:44 -05:00
|
|
|
paths:
|
2024-05-15 15:20:32 -04:00
|
|
|
- '*.ac'
|
|
|
|
- '**/*.m4'
|
|
|
|
- '**/CMakeLists.txt'
|
|
|
|
- 'lib/curl_config.h.cmake'
|
|
|
|
- 'scripts/cmp-config.pl'
|
2023-12-11 20:30:44 -05:00
|
|
|
|
|
|
|
permissions: {}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-05-15 15:20:32 -04:00
|
|
|
- uses: actions/checkout@v4
|
2023-12-11 20:30:44 -05:00
|
|
|
|
2024-05-15 15:20:32 -04:00
|
|
|
- name: run configure --with-openssl
|
|
|
|
run: |
|
|
|
|
autoreconf -fi
|
|
|
|
./configure --with-openssl --without-libpsl
|
2023-12-11 20:30:44 -05:00
|
|
|
|
2024-05-15 15:20:32 -04:00
|
|
|
- name: run cmake
|
|
|
|
run: |
|
|
|
|
mkdir build && cd build && cmake ..
|
2023-12-11 20:30:44 -05:00
|
|
|
|
2024-05-15 15:20:32 -04:00
|
|
|
- name: compare generated curl_config.h files
|
|
|
|
run: ./scripts/cmp-config.pl lib/curl_config.h build/lib/curl_config.h
|