Skip to content

Commit b837fd4

Browse files
Fix: Qt install in for CMake workflow
1 parent 581f057 commit b837fd4

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/ctest.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
- name: Setup Qt # Generated with https://ddalcino.github.io/aqt-list-server/
1616
uses: jurplel/install-qt-action@v3
1717
with:
18-
aqtversion: '==3.1.*'
19-
host: "linux"
18+
aqtversion: "==3.1.*"
19+
host: "linux"
2020
target: "desktop" # desktop libraries
2121
tools: "tools_cmake" # Qt tools for cmake
2222

@@ -26,8 +26,12 @@ jobs:
2626
- name: Create build directory
2727
run: mkdir build
2828

29+
- name: Test QT_ROOT_DIR
30+
run: ls -la $QT_ROOT_DIR
31+
32+
# QT_ROOT_DIR set by install-qt-action
2933
- name: Configure with CMake
30-
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$HOME/Qt/$(ls $HOME/Qt)
34+
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$QT_ROOT_DIR
3135

3236
- name: Build
3337
run: cmake --build build --target tests -- -j$(nproc)

0 commit comments

Comments
 (0)