Skip to content

Commit

Permalink
Bumping to Qt 6.8 (latest LTS) for Mac and Windows builds (#1751)
Browse files Browse the repository at this point in the history
* Try bumping to Qt 6.8 (latest LTS) for builds

Also use mac-latest to try building Apple Silicon / universal

Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis authored Nov 12, 2024
1 parent 98eb30e commit c8775bb
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/build_qt6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: Qt6 Build Matrix
on: [push, pull_request, workflow_dispatch]

env:
QT_VERSION: 6.5.3
QT_VERSION: 6.8.0
# this is different from MACOSX_DEPLOYMENT_TARGET to prevent build problems
# we set MACOSX_DEPLOYMENT_TARGET later
MACOS_TARGET: 10.15
Expand Down Expand Up @@ -39,10 +39,10 @@ jobs:
}
- {
name: "macOS Qt6", artifact: "",
os: macos-13,
os: macos-latest,
cc: "clang", cxx: "clang++",
build_type: "Release",
cmake_flags: "-G Ninja",
cmake_flags: "-G Ninja -DCMAKE_OSX_ARCHITECTURES='arm64;x86_64'",
cpack_flags: "-G DragNDrop",
}
- {
Expand All @@ -65,11 +65,7 @@ jobs:
- name: Install Dependencies (macOS)
if: runner.os == 'macOS'
run: |
if uname -p | grep -q "arm" ; then
export PATH=/opt/homebrew/bin:$PATH
else # not self-hosted runner
brew install ninja eigen glew
fi
brew install ninja eigen glew
- name: Install Dependencies (Windows)
if: runner.os == 'Windows'
run: choco install ninja
Expand All @@ -92,11 +88,20 @@ jobs:
path: avogadrolibs

- name: Install Qt
if: runner.os != 'Windows'
uses: jurplel/install-qt-action@v3
with:
version: ${{ env.QT_VERSION }}
aqtversion: '==3.1.*'

- name: Install Qt (Windows)
if: runner.os == 'Windows'
uses: jurplel/install-qt-action@v3
with:
version: ${{ env.QT_VERSION }}
aqtversion: '==3.1.*'
modules: 'qt5compat'
host: windows
arch: win64_msvc2022_64

- name: Configure MSVC Command Prompt
if: runner.os == 'Windows'
Expand Down Expand Up @@ -135,7 +140,7 @@ jobs:
if (NOT result EQUAL 0)
message(FATAL_ERROR "Running tests failed!")
endif()
- name: Upload
if: matrix.config.artifact != 0
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit c8775bb

Please sign in to comment.