Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/workflows/ctest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,30 @@ jobs:
uses: jurplel/install-qt-action@v3
with:
aqtversion: "==3.1.*"
version: "6.8.3"
dir: ${{ github.workspace }}/Qt
host: "linux"
target: "desktop" # desktop libraries
tools: "tools_cmake" # Qt tools for cmake

- name: Set Qt install path
id: qtpath
run: |
QT_DIR=$(find ${{ github.workspace }}/Qt -type d -name "gcc_*" | head -n1)
echo "QT_DIR=$QT_DIR" >> $GITHUB_ENV
ls -la $QT_DIR
- name: Install CMake
uses: jwlawson/actions-setup-cmake@v1

- name: Create build directory
run: mkdir build

# QT_ROOT_DIR set by install-qt-action
- name: check qt install dir
run: ls -la ${{ github.workspace }}/Qt

- name: Configure with CMake
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$QT_ROOT_DIR
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="$QT_DIR"

- name: Build
run: cmake --build build --target tests -- -j$(nproc)
Expand Down