Enable LTO in release builds

Fixes #693
This commit is contained in:
ISSOtm
2021-01-09 03:57:48 +01:00
parent cab9cb06a3
commit b598911e96
4 changed files with 24 additions and 8 deletions

View File

@@ -34,7 +34,7 @@ jobs:
if: matrix.buildsys == 'make'
- name: Build & install using CMake
run: |
cmake -S . -B build -DCMAKE_VERBOSE_MAKEFILE=ON ${{ matrix.cmakevars }}
cmake -S . -B build -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release ${{ matrix.cmakevars }}
cmake --build build
cp build/src/rgb{asm,link,fix,gfx} .
sudo cmake --install build