• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
2#
3# SPDX-License-Identifier: curl
4
5name: configure-vs-cmake
6on:
7  push:
8    branches:
9      - master
10    paths:
11      - '*.ac'
12      - '**/*.m4'
13      - '**/CMakeLists.txt'
14      - 'lib/curl_config.h.cmake'
15      - 'scripts/cmp-config.pl'
16
17  pull_request:
18    branches:
19      - master
20    paths:
21      - '*.ac'
22      - '**/*.m4'
23      - '**/CMakeLists.txt'
24      - 'lib/curl_config.h.cmake'
25      - 'scripts/cmp-config.pl'
26
27permissions: {}
28
29jobs:
30  check:
31    runs-on: ubuntu-latest
32    steps:
33      - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
34
35      - name: run configure --with-openssl
36        run: |
37           autoreconf -fi
38           ./configure --with-openssl --without-libpsl
39
40      - name: run cmake
41        run: |
42           mkdir build && cd build && cmake ..
43
44      - name: compare generated curl_config.h files
45        run: ./scripts/cmp-config.pl lib/curl_config.h build/lib/curl_config.h
46