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>
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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
diff --git a/.github/workflows/emscripten.yml b/.github/workflows/emscripten.yml
index 633c391..9ab554b 100644
--- a/.github/workflows/emscripten.yml
+++ b/.github/workflows/emscripten.yml
@@ -13,4 +13,4 @@ jobs:
- name: Configure CMake
run: emcmake cmake -B build
- name: Build
- run: cmake --build build/
+ run: cmake -v --build build/
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index fc02d8c..59ab6fe 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -75,19 +75,19 @@ jobs:
git clone --depth 1 https://gitlab.gnome.org/jadahl/libdecor.git --branch 0.1.0
cd libdecor
meson build --buildtype release -Ddemo=false -Ddbus=disabled
- ninja -C build
+ ninja -v -C build
sudo meson install -C build
- uses: actions/checkout@v2
- name: Configure CMake
run: cmake -B build -DSDL_TEST=ON ${{ matrix.platform.flags }}
- name: Build
- run: cmake --build build/ --config Release
+ run: cmake -v --build build/ --config Release
- name: Install
run: |
set -eu
- cmake --build build/ --config Release
+ cmake -v --build build/ --config Release
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
- name: Configure Autotools
if: runner.os == 'Linux'
@@ -116,10 +116,10 @@ jobs:
set -eu
curdir="$(pwd)"
parallel="$(getconf _NPROCESSORS_ONLN)"
- make -j"${parallel}" -C build-autotools
- make -j"${parallel}" -C build-autotools/test
+ make -j"${parallel}" -C build-autotools V=1
+ make -j"${parallel}" -C build-autotools/test V=1
rm -fr 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
- make -j"${parallel}" -C build-autotools dist
+ make -j"${parallel}" -C build-autotools dist V=1
diff --git a/.github/workflows/msvc.yml b/.github/workflows/msvc.yml
index ca78cb1..a6705d8 100644
--- a/.github/workflows/msvc.yml
+++ b/.github/workflows/msvc.yml
@@ -23,7 +23,7 @@ jobs:
- name: Configure CMake
run: cmake -B build -DSDL_TEST=ON ${{ matrix.platform.flags }}
- name: Build CMake
- run: cmake --build build/ --config Release --parallel
+ run: cmake -v --build build/ --config Release --parallel
- name: Add msbuild to PATH
if: ${{ matrix.platform.project != '' }}
diff --git a/.github/workflows/riscos.yml b/.github/workflows/riscos.yml
index 3f46668..aa8233b 100644
--- a/.github/workflows/riscos.yml
+++ b/.github/workflows/riscos.yml
@@ -12,7 +12,7 @@ jobs:
- name: Configure
run: ./configure --host=arm-unknown-riscos --disable-gcc-atomics
- name: Build
- run: make -j`nproc`
+ run: make -j`nproc` V=1
cmake:
name: CMake
@@ -25,4 +25,4 @@ jobs:
- 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
- name: Build
- run: cmake --build build
+ run: cmake -v --build build