From 0c57c56fcebf36b25d625d0dfaec948634bdd7fd Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 3 May 2023 14:12:16 +0000 Subject: [PATCH] ci: switch to out-of-tree autotools builds Cherry-picked from #1017 --- .github/workflows/ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db1b036d..ec5d2bd1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,13 +67,13 @@ jobs: run: autoreconf -fi - name: 'autotools configure' if: ${{ matrix.build == 'autotools' }} - run: ./configure --enable-werror --enable-debug + run: mkdir bld && cd bld && ../configure --enable-werror --enable-debug - name: 'autotools build' if: ${{ matrix.build == 'autotools' }} - run: make -j3 + run: make -C bld -j3 - name: 'autotools tests' if: ${{ matrix.build == 'autotools' }} - run: make check VERBOSE=1 + run: make -C bld check VERBOSE=1 - name: 'cmake configure' if: ${{ matrix.build == 'cmake' }} run: | @@ -121,15 +121,15 @@ jobs: - name: 'autotools configure' shell: msys2 {0} run: | - ./configure --enable-werror --enable-debug --enable-static --disable-shared \ + mkdir bld && cd bld && ../configure --enable-werror --enable-debug --enable-static --disable-shared \ --with-crypto=openssl - name: 'autotools build' shell: msys2 {0} - run: make -j3 + run: make -C bld -j3 - name: 'autotools tests' shell: msys2 {0} - run: make check VERBOSE=1 + run: make -C bld check VERBOSE=1 build_msys2_gnu_make: name: 'msys2 (mingw64, x86_64, Makefile.mk)' @@ -232,12 +232,12 @@ jobs: - name: 'autotools configure' if: ${{ matrix.build == 'autotools' }} run: | - ./configure --enable-werror --enable-debug \ + mkdir bld && cd bld && ../configure --enable-werror --enable-debug \ --with-libz ${{ matrix.crypto.configure }} - name: 'autotools build' if: ${{ matrix.build == 'autotools' }} - run: make -j3 + run: make -C bld -j3 - name: 'cmake configure' if: ${{ matrix.build == 'cmake' }} run: |