From e1b6bee7d7f0238e45db441e841a026e810d9fab Mon Sep 17 00:00:00 2001 From: gmsundar15 Date: Fri, 29 Aug 2025 12:38:28 +0100 Subject: [PATCH 1/3] Fix: Qt install in for CMake workflow --- .github/workflows/ctest.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ctest.yml b/.github/workflows/ctest.yml index 1d7f833..78000c0 100644 --- a/.github/workflows/ctest.yml +++ b/.github/workflows/ctest.yml @@ -15,19 +15,30 @@ jobs: - name: Setup Qt # Generated with https://ddalcino.github.io/aqt-list-server/ uses: jurplel/install-qt-action@v3 with: - aqtversion: '==3.1.*' - host: "linux" + aqtversion: "==3.1.*" + 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 -maxdepth 2 -type d -name "gcc_*" | head -n 1) + 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 + - 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=$HOME/Qt/$(ls $HOME/Qt) + run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="$QT_DIR" - name: Build run: cmake --build build --target tests -- -j$(nproc) From c95abf173f54b9b4e3babcd373e70f4067e817db Mon Sep 17 00:00:00 2001 From: gmsundar15 Date: Fri, 29 Aug 2025 13:17:15 +0100 Subject: [PATCH 2/3] Fix: Qt path --- .github/workflows/ctest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ctest.yml b/.github/workflows/ctest.yml index 78000c0..340e356 100644 --- a/.github/workflows/ctest.yml +++ b/.github/workflows/ctest.yml @@ -24,7 +24,7 @@ jobs: - name: Set Qt install path id: qtpath run: | - QT_DIR=$(find ${{ github.workspace }}/Qt -maxdepth 2 -type d -name "gcc_*" | head -n 1) + QT_DIR=$(find ${{ github.workspace }}/Qt -type d -name "gcc_*" | head -n1) echo "QT_DIR=$QT_DIR" >> $GITHUB_ENV ls -la $QT_DIR From 19803e044b9f3dac0447805df5f4b5a7e87f4bcc Mon Sep 17 00:00:00 2001 From: gmsundar15 Date: Fri, 29 Aug 2025 13:24:58 +0100 Subject: [PATCH 3/3] Add Qt version --- .github/workflows/ctest.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ctest.yml b/.github/workflows/ctest.yml index 340e356..c33b947 100644 --- a/.github/workflows/ctest.yml +++ b/.github/workflows/ctest.yml @@ -16,6 +16,7 @@ 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