diff --git a/.github/workflows/linux-builds.yml b/.github/workflows/linux-builds.yml index 976da65..1be3c34 100644 --- a/.github/workflows/linux-builds.yml +++ b/.github/workflows/linux-builds.yml @@ -2,7 +2,46 @@ name: linux-builds on: [push] -jobs: +jobs: + build_ubuntu_2204_cmake: + runs-on: ubuntu-22.04 + + env: + QT_VERSION: 6.4.2 + QT_DIR: ${{ github.workspace }}/Qt + + steps: + - name: Checkout source + uses: actions/checkout@v4 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y build-essential cmake ninja-build libgl1-mesa-dev libxkbcommon-x11-0 libx11-dev + + - name: Install Qt + uses: jurplel/install-qt-action@v3 + with: + version: ${{ env.QT_VERSION }} + target: desktop + host: linux + arch: gcc_64 + dir: ${{ env.QT_DIR }} + setup-python: false + + - name: Configure with CMake + run: | + cmake -S . -B build \ + -DCMAKE_PREFIX_PATH="${{ env.QT_DIR }}/Qt/${{ env.QT_VERSION }}/gcc_64" \ + -DCMAKE_BUILD_TYPE=Release \ + -G Ninja + + - name: Build + run: cmake --build build + + - name: Run CMake install (optional) + run: cmake --install build + build_ubuntu_2204: runs-on: ubuntu-22.04 steps: