workflows: Tell CMake and Makefile.in to show compiler command-lines

This is usually desirable for batch processing: it lets us see exactly
what is happening in the logs.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2022-05-04 17:45:26 +01:00 committed by Sam Lantinga
parent b398a847be
commit 50bc013695
4 changed files with 12 additions and 12 deletions

View File

@ -13,4 +13,4 @@ jobs:
- name: Configure CMake - name: Configure CMake
run: emcmake cmake -B build run: emcmake cmake -B build
- name: Build - name: Build
run: cmake --build build/ run: cmake -v --build build/

View File

@ -75,19 +75,19 @@ jobs:
git clone --depth 1 https://gitlab.gnome.org/jadahl/libdecor.git --branch 0.1.0 git clone --depth 1 https://gitlab.gnome.org/jadahl/libdecor.git --branch 0.1.0
cd libdecor cd libdecor
meson build --buildtype release -Ddemo=false -Ddbus=disabled meson build --buildtype release -Ddemo=false -Ddbus=disabled
ninja -C build ninja -v -C build
sudo meson install -C build sudo meson install -C build
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Configure CMake - name: Configure CMake
run: cmake -B build -DSDL_TEST=ON ${{ matrix.platform.flags }} run: cmake -B build -DSDL_TEST=ON ${{ matrix.platform.flags }}
- name: Build - name: Build
run: cmake --build build/ --config Release run: cmake -v --build build/ --config Release
- name: Install - name: Install
run: | run: |
set -eu set -eu
cmake --build build/ --config Release cmake -v --build build/ --config Release
rm -fr DESTDIR-cmake rm -fr DESTDIR-cmake
DESTDIR=$(pwd)/DESTDIR-cmake cmake --install build/ --config Release DESTDIR=$(pwd)/DESTDIR-cmake cmake -v --install build/ --config Release
( cd DESTDIR-cmake; find ) | LC_ALL=C sort -u ( cd DESTDIR-cmake; find ) | LC_ALL=C sort -u
- name: Configure Autotools - name: Configure Autotools
if: runner.os == 'Linux' if: runner.os == 'Linux'
@ -116,10 +116,10 @@ jobs:
set -eu set -eu
curdir="$(pwd)" curdir="$(pwd)"
parallel="$(getconf _NPROCESSORS_ONLN)" parallel="$(getconf _NPROCESSORS_ONLN)"
make -j"${parallel}" -C build-autotools make -j"${parallel}" -C build-autotools V=1
make -j"${parallel}" -C build-autotools/test make -j"${parallel}" -C build-autotools/test V=1
rm -fr DESTDIR-autotools rm -fr DESTDIR-autotools
mkdir DESTDIR-autotools mkdir DESTDIR-autotools
make -j"${parallel}" -C build-autotools install DESTDIR="${curdir}/DESTDIR-autotools" make -j"${parallel}" -C build-autotools install DESTDIR="${curdir}/DESTDIR-autotools" V=1
( cd DESTDIR-autotools; find ) | LC_ALL=C sort -u ( cd DESTDIR-autotools; find ) | LC_ALL=C sort -u
make -j"${parallel}" -C build-autotools dist make -j"${parallel}" -C build-autotools dist V=1

View File

@ -23,7 +23,7 @@ jobs:
- name: Configure CMake - name: Configure CMake
run: cmake -B build -DSDL_TEST=ON ${{ matrix.platform.flags }} run: cmake -B build -DSDL_TEST=ON ${{ matrix.platform.flags }}
- name: Build CMake - name: Build CMake
run: cmake --build build/ --config Release --parallel run: cmake -v --build build/ --config Release --parallel
- name: Add msbuild to PATH - name: Add msbuild to PATH
if: ${{ matrix.platform.project != '' }} if: ${{ matrix.platform.project != '' }}

View File

@ -12,7 +12,7 @@ jobs:
- name: Configure - name: Configure
run: ./configure --host=arm-unknown-riscos --disable-gcc-atomics run: ./configure --host=arm-unknown-riscos --disable-gcc-atomics
- name: Build - name: Build
run: make -j`nproc` run: make -j`nproc` V=1
cmake: cmake:
name: CMake name: CMake
@ -25,4 +25,4 @@ jobs:
- name: Configure CMake - name: Configure CMake
run: cmake -S. -Bbuild -G Ninja -DCMAKE_TOOLCHAIN_FILE=/home/riscos/env/toolchain-riscos.cmake -DRISCOS=ON -DSDL_GCC_ATOMICS=OFF -DCMAKE_BUILD_TYPE=Release run: cmake -S. -Bbuild -G Ninja -DCMAKE_TOOLCHAIN_FILE=/home/riscos/env/toolchain-riscos.cmake -DRISCOS=ON -DSDL_GCC_ATOMICS=OFF -DCMAKE_BUILD_TYPE=Release
- name: Build - name: Build
run: cmake --build build run: cmake -v --build build