summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2021-03-22 22:22:02 +0100
committerSebastian Pipping <sebastian@pipping.org>2021-03-22 22:40:54 +0100
commite9026b19c4ff653b3ed61057b6ac58d8ade187ca (patch)
tree4b0dedac37f3f3ca901a8b7c965e9cd0b1107f01 /.github
parentb50ff5adaaf5576f6485cc2f6351b7604d647992 (diff)
downloadlibexpat-git-e9026b19c4ff653b3ed61057b6ac58d8ade187ca.tar.gz
Actions: Ensure that GNU Autotools install identical CMake files
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/autotools-cmake.yml55
1 files changed, 55 insertions, 0 deletions
diff --git a/.github/workflows/autotools-cmake.yml b/.github/workflows/autotools-cmake.yml
new file mode 100644
index 00000000..16c37bf1
--- /dev/null
+++ b/.github/workflows/autotools-cmake.yml
@@ -0,0 +1,55 @@
+# Copyright (C) 2021 Sebastian Pipping <sebastian@pipping.org>
+# Licensed under the MIT license
+
+name: Ensure that Autotools install identical CMake files
+
+on:
+- pull_request
+- push
+
+jobs:
+ checks:
+ name: Ensure that Autotools install identical CMake files
+ runs-on: ubuntu-20.04
+ steps:
+ - uses: actions/checkout@v2.3.4
+
+ - name: Install build dependencies
+ run: |-
+ sudo apt-get install --yes --no-install-recommends -V \
+ cmake \
+ docbook2x \
+ lzip
+
+ - name: Check for identical CMake files from both build system
+ run: |
+ set -x
+ pushd expat
+
+ ./buildconf.sh
+ ./configure
+ make dist
+ tar xf expat-*.tar.gz
+ pushd expat-*/
+
+ mkdir build_autotools
+ pushd build_autotools
+ ../configure --libdir='${exec_prefix}/lib123'
+ make install DESTDIR="${PWD}"/ROOT
+ popd
+
+ mkdir build_cmake
+ pushd build_cmake
+ cmake -DCMAKE_INSTALL_LIBDIR=lib123 ..
+ make install DESTDIR="${PWD}"/ROOT
+ popd
+
+ diff \
+ --recursive \
+ --unified \
+ --exclude=xmlwf \
+ --exclude=libexpat.a \
+ --exclude=libexpat.la \
+ --exclude='*.so*' \
+ --exclude=expat_config.h \
+ build_{autotools,cmake}/ROOT