Have CMake build and install steps be verbose

This commit is contained in:
ISSOtm
2022-05-01 13:05:00 +02:00
committed by Eldred Habert
parent 491b6746ab
commit 0dbcebfeb4

View File

@@ -33,19 +33,19 @@ jobs:
# Apple's base version is severely outdated, not even supporting -Wall, # Apple's base version is severely outdated, not even supporting -Wall,
# but it overrides Homebrew's version nonetheless... # but it overrides Homebrew's version nonetheless...
- name: Build & install using Make - name: Build & install using Make
if: matrix.buildsys == 'make'
run: | run: |
export PATH="/usr/local/opt/bison/bin:$PATH" export PATH="/usr/local/opt/bison/bin:$PATH"
make develop -j Q= CC=${{ matrix.cc }} CXX=${{ matrix.cxx }} make develop -j Q= CC=${{ matrix.cc }} CXX=${{ matrix.cxx }}
sudo make install -j Q= sudo make install -j Q=
if: matrix.buildsys == 'make'
- name: Build & install using CMake - name: Build & install using CMake
if: matrix.buildsys == 'cmake'
run: | run: |
export PATH="/usr/local/opt/bison/bin:$PATH" export PATH="/usr/local/opt/bison/bin:$PATH"
cmake -S . -B build -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=${{ matrix.cc }} -DCMAKE_CXX_COMPILER=${{ matrix.cxx }} -DSANITIZERS=ON -DMORE_WARNINGS=ON cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=${{ matrix.cc }} -DCMAKE_CXX_COMPILER=${{ matrix.cxx }} -DSANITIZERS=ON -DMORE_WARNINGS=ON
cmake --build build -j cmake --build build -j --verbose
cp build/src/rgb{asm,link,fix,gfx} . cp build/src/rgb{asm,link,fix,gfx} .
sudo cmake --install build sudo cmake --install build --verbose
if: matrix.buildsys == 'cmake'
- name: Package binaries - name: Package binaries
run: | run: |
mkdir bins mkdir bins
@@ -126,8 +126,8 @@ jobs:
- name: Build Windows binaries - name: Build Windows binaries
run: | run: |
cmake -S . -B build -A ${{ matrix.platform }} -DCMAKE_INSTALL_PREFIX=install_dir -DCMAKE_BUILD_TYPE=Release cmake -S . -B build -A ${{ matrix.platform }} -DCMAKE_INSTALL_PREFIX=install_dir -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release -j cmake --build build --config Release -j --verbose
cmake --install build cmake --install build --verbose --prefix install_dir
- name: Package binaries - name: Package binaries
shell: bash shell: bash
run: | run: |