diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..ae070b3 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: Build + +on: + push: + branches: '*' + pull_request: + branches: [ "master" ] + +env: + BUILD_TYPE: Release + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + submodules: 'recursive' + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y nlohmann-json3-dev libutfcpp-dev libgd-dev + shell: bash + - name: Install Qt + uses: jurplel/install-qt-action@v3 + with: + version: '6.6.*' + - name: Configure CMake + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + + - name: Build + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j$(nproc --all) + diff --git a/build/FindQt.cmake b/build/FindQt.cmake index 22f0f73..74ed07b 100644 --- a/build/FindQt.cmake +++ b/build/FindQt.cmake @@ -1 +1 @@ -find_package(Qt6 6.6 COMPONENTS Gui Qml REQUIRED) +find_package(Qt6 6.6 COMPONENTS Gui Qml Quick REQUIRED)