workflows: Change how we make CMake verbose Some CI workers don't seem to understand `cmake -v`, and Windows' shell doesn't understand `VERBOSE=1 cmake`. 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
diff --git a/.github/workflows/emscripten.yml b/.github/workflows/emscripten.yml
index 9ab554b..04372bf 100644
--- a/.github/workflows/emscripten.yml
+++ b/.github/workflows/emscripten.yml
@@ -11,6 +11,6 @@ jobs:
with:
version: 2.0.27
- name: Configure CMake
- run: emcmake cmake -B build
+ run: emcmake cmake -B build -DCMAKE_VERBOSE_MAKEFILE=ON
- name: Build
- run: cmake -v --build build/
+ run: cmake --build build/
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index ed233c1..353cdce 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -82,14 +82,14 @@ jobs:
if: runner.os == 'Linux'
run: ./test/versioning.sh
- name: Configure CMake
- run: cmake -B build -DSDL_TEST=ON ${{ matrix.platform.flags }}
+ run: cmake -B build -DSDL_TEST=ON -DCMAKE_VERBOSE_MAKEFILE=ON ${{ matrix.platform.flags }}
- name: Build
- run: cmake -v --build build/ --config Release
+ run: cmake --build build/ --config Release
- name: Install
run: |
set -eu
rm -fr DESTDIR-cmake
- DESTDIR=$(pwd)/DESTDIR-cmake cmake -v --install build/ --config Release
+ DESTDIR=$(pwd)/DESTDIR-cmake cmake --install build/ --config Release
( cd DESTDIR-cmake; find ) | LC_ALL=C sort -u
- name: Configure Autotools
if: runner.os == 'Linux'
diff --git a/.github/workflows/msvc.yml b/.github/workflows/msvc.yml
index a6705d8..ca78cb1 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 -v --build build/ --config Release --parallel
+ run: cmake --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 aa8233b..9f33705 100644
--- a/.github/workflows/riscos.yml
+++ b/.github/workflows/riscos.yml
@@ -23,6 +23,6 @@ jobs:
run: apt-get update && apt-get install -y cmake ninja-build
- uses: actions/checkout@v2
- 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 -DCMAKE_VERBOSE_MAKEFILE=ON
- name: Build
- run: cmake -v --build build
+ run: cmake --build build