Skip to content

Upgrate to Qt 6.8

Upgrate to Qt 6.8 #162

Workflow file for this run

name: Build
on: [pull_request,workflow_call]
jobs:
Formatting:
uses: ./.github/workflows/formatting.yaml
Filename:
uses: ./.github/workflows/filename.yaml
with:
original_event_name: "${{ github.event_name }}"
Windows:
runs-on: windows-latest
needs: [Formatting, Filename]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install MSCV
uses: ilammy/msvc-dev-cmd@v1
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: '6.8.*'
host: 'windows'
target: 'desktop'
arch: 'win64_msvc2022_64'
modules: 'qthttpserver qtwebsockets'
- name: Configure
run: cmake -DENABLE_CLANG_TIDY=True -DCMAKE_CXX_COMPILER=cl -DCMAKE_BUILD_TYPE:STRING=Release -B build -G Ninja
- name: Build
run: cmake --build build
- name: Bundle
run: cd build && cpack -C CPackConfig.cmake
- name: Rename 7z
working-directory: ./dist
run: mv MoonDeckBuddy*.7z ${{ needs.Filename.outputs.filename }}-win64.7z
- name: Rename Exe
working-directory: ./dist
run: mv MoonDeckBuddy*.exe ${{ needs.Filename.outputs.filename }}-win64.exe
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: moondeckbuddy-windows
path: dist/*
if-no-files-found: error
Linux:
runs-on: ubuntu-latest
needs: [Formatting, Filename]
steps:
- name: Install packages
run: sudo apt-get install ninja-build libproc2-dev libxrandr-dev libfuse2 libxcb-cursor-dev
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: '6.8.*'
host: 'linux'
target: 'desktop'
arch: 'linux_gcc_64'
modules: 'qthttpserver qtwebsockets'
- name: Configure
run: mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE:STRING=Release -G Ninja
- name: Build
working-directory: ./build
run: ninja
- name: Install
working-directory: ./build
run: DESTDIR=AppDir ninja install
- name: Get linuxdeploy's AppImage
working-directory: ./build
run: wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage && chmod +x ./linuxdeploy-x86_64.AppImage
- name: Get linuxdeploy's QT AppImage
working-directory: ./build
run: wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage && chmod +x ./linuxdeploy-plugin-qt-x86_64.AppImage
- name: Rename
run: echo "OUTPUT=${{ needs.Filename.outputs.filename }}-x86_64.AppImage" >> $GITHUB_ENV
- name: Package AppImage
working-directory: ./build
run: ./linuxdeploy-x86_64.AppImage --appdir ./AppDir --output appimage --plugin qt --custom-apprun="../resources/linux/AppRun" --library="/usr/lib/x86_64-linux-gnu/libssl.so.3" --library="/usr/lib/x86_64-linux-gnu/libcrypto.so.3"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: moondeckbuddy-linux
path: ./build/MoonDeckBuddy*AppImage
if-no-files-found: error