aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/configure-vs-cmake.yml
blob: dc2273f7375e893b071c07833d9ee13f3cf04b7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 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'
      - 'scripts/cmp-config.pl'

  pull_request:
    branches:
      - master
    paths:
      - '*.ac'
      - '**/*.m4'
      - '**/CMakeLists.txt'
      - 'lib/curl_config.h.cmake'
      - 'scripts/cmp-config.pl'

permissions: {}

jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: run configure --with-openssl
        run: |
           autoreconf -fi
           ./configure --with-openssl --without-libpsl

      - name: run cmake
        run: |
           mkdir build && cd build && cmake ..

      - name: compare generated curl_config.h files
        run: ./scripts/cmp-config.pl lib/curl_config.h build/lib/curl_config.h