cmake: add default Werror, extract version only from GITHUB_REF if tag

This commit is contained in:
Konstantin Lampalzer 2024-09-25 21:54:46 +02:00
parent 3ac90c382e
commit e51895fa18
3 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v4
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_FLAGS="-Werror"
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}