Skip to content

Commit 004d4b9

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

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/ctest.yml

Lines changed: 4 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,9 @@ jobs:
2626
- name: Create build directory
2727
run: mkdir build
2828

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

3233
- name: Build
3334
run: cmake --build build --target tests -- -j$(nproc)

0 commit comments

Comments
 (0)