Skip to content

Compile with warning as error #27

Compile with warning as error

Compile with warning as error #27

Workflow file for this run

name: libQGLViewer
on: [push, pull_request]
jobs:
buildQt5:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get install -y build-essential qtbase5-dev libglu1-mesa-dev
- name: Build all
run: |
mkdir build
cd build
cmake -DCMAKE_CXX_FLAGS="-Wall -Wextra -Wshadow -Wpointer-arith -Werror -Wno-error=deprecated-declarations" ..
make all
buildQt6:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get install -y build-essential qt6-base-dev libglu1-mesa-dev
- name: Build all
run: |
mkdir build
cd build
cmake -DCMAKE_CXX_FLAGS="-Wall -Wextra -Wshadow -Wpointer-arith -Werror -Wno-error=deprecated-declarations" ..
make all