Skip to content

Commit 1236b15

Browse files
mensindajpakkane
authored andcommitted
ci: Downgrade Qt on MacOS from Qt6 to Qt5
1 parent 91e30fa commit 1236b15

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/macos.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,16 @@ jobs:
2525
- run: |
2626
python -m pip install --upgrade pip
2727
python -m pip install pytest pytest-xdist jsonschema
28-
- run: brew install pkg-config ninja llvm qt
28+
- run: brew install pkg-config ninja llvm qt@5
2929
- env:
3030
CPPFLAGS: "-I/usr/local/include"
3131
LDFLAGS: "-L/usr/local/lib"
3232
MESON_UNIT_TEST_BACKEND: ninja
3333
# These cannot evaluate anything, so we cannot set PATH or SDKROOT here
3434
run: |
3535
export SDKROOT="$(xcodebuild -version -sdk macosx Path)"
36-
export PATH="$HOME/tools:/usr/local/opt/qt/bin:$PATH:$(brew --prefix llvm)/bin"
36+
export PATH="$HOME/tools:/usr/local/opt/qt@5/bin:$PATH:$(brew --prefix llvm)/bin"
37+
export PKG_CONFIG_PATH="/usr/local/opt/qt@5/lib/pkgconfig:$PKG_CONFIG_PATH"
3738
./run_unittests.py
3839
3940
project-tests-appleclang:
@@ -45,7 +46,7 @@ jobs:
4546
- uses: actions/checkout@v2
4647
# use python3 from homebrew because it is a valid framework, unlike the actions one:
4748
# https://github.com/actions/setup-python/issues/58
48-
- run: brew install pkg-config ninja llvm qt boost ldc hdf5 openmpi lapack scalapack sdl2 python3
49+
- run: brew install pkg-config ninja llvm qt@5 boost ldc hdf5 openmpi lapack scalapack sdl2 python3
4950
- run: |
5051
python3 -m pip install --upgrade setuptools
5152
python3 -m pip install --upgrade pip
@@ -58,7 +59,8 @@ jobs:
5859
# These cannot evaluate anything, so we cannot set PATH or SDKROOT here
5960
run: |
6061
export SDKROOT="$(xcodebuild -version -sdk macosx Path)"
61-
export PATH="$HOME/tools:/usr/local/opt/qt/bin:$PATH:$(brew --prefix llvm)/bin"
62+
export PATH="$HOME/tools:/usr/local/opt/qt@5/bin:$PATH:$(brew --prefix llvm)/bin"
63+
export PKG_CONFIG_PATH="/usr/local/opt/qt@5/lib/pkgconfig:$PKG_CONFIG_PATH"
6264
./run_project_tests.py --backend=ninja
6365
6466
Qt4macos:

0 commit comments

Comments
 (0)