diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2021-04-05 15:13:23 +0200 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2021-04-05 20:05:50 +0200 |
commit | 7b0670460197d3d96e662bcc0c5aba3bdddd703f (patch) | |
tree | 413f362c69880e2dd7361480e8e3b6fb76d296f6 | |
parent | b99f9f510415a7dbbb68910dd15503c31636f868 (diff) | |
download | libexpat-git-7b0670460197d3d96e662bcc0c5aba3bdddd703f.tar.gz |
autotools-cmake.yml: Split up for upcoming extension
-rw-r--r-- | .github/workflows/autotools-cmake.yml | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/.github/workflows/autotools-cmake.yml b/.github/workflows/autotools-cmake.yml index 9a0e9f71..9cddf8cc 100644 --- a/.github/workflows/autotools-cmake.yml +++ b/.github/workflows/autotools-cmake.yml @@ -1,7 +1,7 @@ # Copyright (C) 2021 Sebastian Pipping <sebastian@pipping.org> # Licensed under the MIT license -name: Ensure that Autotools install identical CMake files +name: Ensure that GNU Autotools and CMake build systems agree on: pull_request: @@ -11,7 +11,7 @@ on: jobs: checks: - name: Ensure that Autotools install identical CMake files + name: Ensure that GNU Autotools and CMake build systems agree runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2.3.4 @@ -23,29 +23,37 @@ jobs: docbook2x \ lzip - - name: Check for identical CMake files from both build system + - name: Produce and extract a release archive run: | set -x - pushd expat - + cd expat ./buildconf.sh ./configure make dist tar xf expat-*.*.*.tar.gz - pushd expat-*.*.*/ + - name: Build and install using GNU Autotools + run: | + set -x + cd expat/expat-*.*.*/ mkdir build_autotools - pushd build_autotools - ../configure --libdir='${exec_prefix}/lib123' - make install DESTDIR="${PWD}"/ROOT - popd + cd build_autotools + ../configure --libdir='${exec_prefix}/lib123' + make install DESTDIR="${PWD}"/ROOT + - name: Build and install using CMake + run: | + set -x + cd expat/expat-*.*.*/ mkdir build_cmake - pushd build_cmake - cmake -DCMAKE_INSTALL_LIBDIR=lib123 .. - make install DESTDIR="${PWD}"/ROOT - popd + cd build_cmake + cmake -DCMAKE_INSTALL_LIBDIR=lib123 .. + make install DESTDIR="${PWD}"/ROOT + - name: Check for identical CMake files from both build systems + run: | + set -x + cd expat/expat-*.*.*/ diff \ --recursive \ --unified \ |