diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..1f8042c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,35 @@ +name: Linux CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: Release + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v3 + - name: Install Qt + uses: jurplel/install-qt-action@v3.3.0 + with: + version: '6.5.0' + host: 'linux' + target: 'desktop' + arch: 'gcc_64' + modules: 'qtnetworkauth' + archives: 'icu qtbase qtsvg' + aqtversion: '==3.1.*' + - name: Configure CMake + # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. + # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type + run: cmake -B ${{github.workspace}}/build -DCMAKE_CXX_STANDARD=14 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + - name: Build + # Build your program with the given configuration + run: cmake --build ${{github.workspace}}/build diff --git a/CMakeLists.txt b/CMakeLists.txt index 7cc7496..63918e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,7 +92,6 @@ target_include_directories(QCodeEditor PUBLIC if(CMAKE_COMPILER_IS_GNUCXX) target_compile_options(QCodeEditor PRIVATE - -ansi -pedantic -Wall -Wextra