Skip to content

Commit

Permalink
Add QT installation step to CMake yml
Browse files Browse the repository at this point in the history
  • Loading branch information
franziska-wegner committed Dec 3, 2023
1 parent 8899cd9 commit 6919071
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,21 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
# host: windows
target: "desktop"
version: ${{ env.QT_VERSION }}
# arch: ${{ env.MINGW_VERSION }}
dir: "${{github.workspace}}/qt"
install-deps: "true"

# - name: Set Qt path and refresh
# run: |
# echo "${{github.workspace}}/qt/Qt/${{ env.QT_VERSION }}/${{ env.MINGW_PATH }}/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
# refreshenv

- name: Set reusable strings
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
id: strings
Expand All @@ -55,6 +70,8 @@ jobs:
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Configure CMake
env:
CMAKE_PREFIX_PATH: ${{env.Qt6_Dir}}
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: >
Expand Down

0 comments on commit 6919071

Please sign in to comment.