34
34
- run : |
35
35
python -m pip install --upgrade pip
36
36
python -m pip install pytest pytest-xdist pytest-subtests jsonschema coverage codecov
37
- - run : brew install pkg-config ninja llvm qt@5
37
+ # Use llvm-14 for now to fix llvm framework static tests, see
38
+ # https://github.com/Homebrew/discussions/discussions/3666#discussioncomment-3681821
39
+ - run : brew install pkg-config ninja llvm@14 qt@5
38
40
- env :
39
41
CPPFLAGS : " -I/usr/local/include"
40
42
LDFLAGS : " -L/usr/local/lib"
43
45
# These cannot evaluate anything, so we cannot set PATH or SDKROOT here
44
46
run : |
45
47
export SDKROOT="$(xcodebuild -version -sdk macosx Path)"
46
- export PATH="$HOME/tools:/usr/local/opt/qt@5/bin:$PATH:$(brew --prefix llvm)/bin"
48
+ export PATH="$HOME/tools:/usr/local/opt/qt@5/bin:$PATH:$(brew --prefix llvm@14 )/bin"
47
49
export PKG_CONFIG_PATH="/usr/local/opt/qt@5/lib/pkgconfig:$PKG_CONFIG_PATH"
48
50
./tools/run_with_cov.py ./run_unittests.py
49
51
- name : Upload coverage report
69
71
- uses : actions/checkout@v2
70
72
# use python3 from homebrew because it is a valid framework, unlike the actions one:
71
73
# https://github.com/actions/setup-python/issues/58
72
- - run : brew install pkg-config ninja llvm qt@5 boost ldc hdf5 openmpi lapack scalapack sdl2 python3 boost-python3 gtk-doc
74
+ # Use llvm-14 for now to fix llvm framework static tests, see
75
+ # https://github.com/Homebrew/discussions/discussions/3666#discussioncomment-3681821
76
+ - run : brew install pkg-config ninja llvm@14 qt@5 boost ldc hdf5 openmpi lapack scalapack sdl2 python3 boost-python3 gtk-doc
73
77
- run : |
74
78
python3 -m pip install --upgrade setuptools
75
79
python3 -m pip install --upgrade pip
@@ -82,37 +86,48 @@ jobs:
82
86
# These cannot evaluate anything, so we cannot set PATH or SDKROOT here
83
87
run : |
84
88
export SDKROOT="$(xcodebuild -version -sdk macosx Path)"
85
- export PATH="$HOME/tools:/usr/local/opt/qt@5/bin:$PATH:$(brew --prefix llvm)/bin"
89
+ export PATH="$HOME/tools:/usr/local/opt/qt@5/bin:$PATH:$(brew --prefix llvm@14 )/bin"
86
90
export PKG_CONFIG_PATH="/usr/local/opt/qt@5/lib/pkgconfig:$PKG_CONFIG_PATH"
87
91
export XML_CATALOG_FILES="/usr/local/etc/xml/catalog"
88
92
./tools/run_with_cov.py ./run_project_tests.py --backend=ninja
89
93
- name : Upload coverage report
90
94
run : ./ci/upload_cov.sh "appleclang [project tests; unity=${{ matrix.unity }}]"
91
95
92
- Qt4macos :
96
+ Qt4_LLVM15_macos :
93
97
runs-on : macos-latest
94
98
steps :
95
99
- uses : actions/checkout@v2
96
100
- uses : actions/setup-python@v2
97
101
with :
98
102
python-version : ' 3.x'
99
103
- run : python -m pip install -e .
100
- - run : brew install pkg-config ninja gcc
104
+ - run : brew install pkg-config ninja gcc llvm
101
105
- run : brew tap cartr/qt4
102
106
- run : brew install qt@4
103
107
- run : brew link qt@4
104
- # qt4 tap seems to be broken
108
+ # qt4 tap seems to be broken
105
109
- run : ln -sfn /usr/local/Cellar/qt@4/4.8.7_6.reinstall /usr/local/Cellar/qt@4/4.8.7_6
106
- - run : meson setup "test cases/frameworks/4 qt" build -Drequired=qt4
107
- - run : meson compile -C build
110
+ - run : meson setup "test cases/frameworks/4 qt" build_qt -Drequired=qt4
111
+ - run : meson compile -C build_qt
108
112
- uses : actions/upload-artifact@v1
109
113
if : failure()
110
114
with :
111
115
name : Qt4_Mac_build
112
- path : build /meson-logs/meson-log.txt
113
- - run : meson test -C build -v
116
+ path : build_qt /meson-logs/meson-log.txt
117
+ - run : meson test -C build_qt -v
114
118
- uses : actions/upload-artifact@v1
115
119
if : failure()
116
120
with :
117
121
name : Qt4_Mac_test
118
- path : build/meson-logs/testlog.txt
122
+ path : build_qt/meson-logs/testlog.txt
123
+ # llvm-15 is broken, due to which static linking doesn't work
124
+ # https://github.com/mesonbuild/meson/pull/10879#issuecomment-1264524936
125
+ - run : |
126
+ export PATH="$PATH:$(brew --prefix llvm)/bin"
127
+ meson setup "test cases/frameworks/15 llvm" build_llvm -Dlink-static=false -Dmethod=config-tool
128
+ - run : meson compile -C build_llvm
129
+ - uses : actions/upload-artifact@v1
130
+ if : failure()
131
+ with :
132
+ name : LLVM15_Mac_build
133
+ path : build_llvm/meson-logs/meson-log.txt
0 commit comments