-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Fanda Vacek
committed
Oct 7, 2024
1 parent
05b1030
commit 3c764eb
Showing
4 changed files
with
46 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,9 @@ inputs: | |
qt_version: | ||
description: "Specify Qt version to use" | ||
required: true | ||
default: "6.5.3" | ||
qt_arch: | ||
description: "Specify Qt version to use" | ||
description: "Specify Qt arch to use" | ||
default: "gcc_64" | ||
use_qt6: | ||
description: "Specify whether we're using Qt 5 or Qt 6" | ||
|
@@ -21,11 +22,11 @@ runs: | |
using: "composite" | ||
steps: | ||
# Linux deps | ||
- name: Install/cache clazy, ninja, openldap, doctest libfuse, and Qt's dependencies | ||
- name: Install apt packages | ||
if: runner.os != 'Windows' | ||
uses: awalsh128/cache-apt-pkgs-action@v1.3.0 | ||
uses: awalsh128/cache-apt-pkgs-action@v1.4.2 | ||
with: | ||
packages: ninja-build libgl1-mesa-dev libpulse-dev libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxcb-util1 libxcb-xinerama0 libxkbcommon-x11-0 libxcb-cursor-dev clazy libfuse-dev libgstreamer-gl1.0-0 libgstreamer-plugins-base1.0-0 | ||
packages: libgl1-mesa-dev libpulse-dev libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxcb-util1 libxcb-xinerama0 libxkbcommon-x11-0 libxcb-cursor-dev clazy libfuse-dev | ||
version: 1.0 | ||
|
||
# Windows deps | ||
|
@@ -45,27 +46,34 @@ runs: | |
arch: ${{ inputs.qt_arch }} | ||
install-deps: false | ||
modules: ${{ inputs.modules }} | ||
|
||
#- name: Setup Ninja | ||
# uses: ashutoshvarma/setup-ninja@master | ||
# with: | ||
# # ninja version to download. Default: 1.10.0 | ||
# version: 1.10.0 | ||
|
||
extra: --autodesktop | ||
|
||
- name: WASM-specific stuff | ||
if: inputs.qt_arch == 'wasm_singlethread' | ||
run: | | ||
chmod +x "${Qt6_DIR}/bin/qt-cmake" | ||
echo cmake_extra_args="'-DBUILD_SHARED_LIBS=OFF' '-DQT_HOST_PATH=$(realpath "${Qt6_DIR}/../gcc_64")'" >> "$GITHUB_ENV" | ||
echo CMAKE_BIN="${Qt6_DIR}/bin/qt-cmake" >> "$GITHUB_ENV" | ||
shell: bash | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ${{ github.job }} | ||
|
||
- name: Configure CMake | ||
run: | | ||
# Enable these when all warnings are fixed :^) | ||
# CFLAGS="-Werror ${CFLAGS}" \ | ||
# CXXFLAGS="-Werror ${CXXFLAGS}" \ | ||
# -G Ninja \ | ||
cmake \ | ||
-S '${{github.workspace}}' \ | ||
-B '${{github.workspace}}/build' \ | ||
-DQF_BUILD_QML_PLUGINS=ON \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DBUILD_TESTING=OFF \ | ||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ | ||
-DUSE_QT6=${{ inputs.use_qt6 }} \ | ||
${{ env.cmake_extra_args }} \ | ||
${{ inputs.additional_cmake_args }} | ||
"${CMAKE_BIN:-cmake}" \ | ||
-S '${{github.workspace}}' \ | ||
-B '${{github.workspace}}/build' \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DBUILD_TESTING=OFF \ | ||
-DCMAKE_C_COMPILER_LAUNCHER=ccache \ | ||
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ | ||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ | ||
-DUSE_QT6=${{ inputs.use_qt6 }} \ | ||
${{ env.cmake_extra_args }} \ | ||
${{ inputs.additional_cmake_args }} | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters