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