@@ -11,31 +11,14 @@ jobs:
11
11
name : Linux
12
12
runs-on : ubuntu-20.04
13
13
env :
14
- INSTALL_PREFIX : " /opt/smelibs"
15
- SUDO_CMD : " sudo"
16
- # legacy opengl option prevents qt from depending on libOpenGL: https://bugreports.qt.io/browse/QTBUG-89754
17
- CONFIGURE_EXTRAS : " -DFEATURE_xcb=ON -DINPUT_bundled_xcb_xinput=yes -DFEATURE_libudev=OFF -DOpenGL_GL_PREFERENCE=LEGACY"
18
- OS : " linux"
19
- CC : " clang"
20
- CXX : " clang++"
14
+ CONFIGURE_EXTRAS : " -DFEATURE_xcb=ON -DINPUT_bundled_xcb_xinput=yes -DFEATURE_libudev=OFF"
21
15
defaults :
22
16
run :
23
17
shell : bash
24
18
steps :
25
- - name : Add llvm repo for clang 18
26
- run : |
27
- sudo wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
28
- sudo add-apt-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-18 main"
29
- - name : Install Qt build dependencies
30
- run : |
31
- sudo apt update -yy
32
- sudo apt install -yy clang-18 libglu1-mesa-dev ninja-build libx11-dev libx11-xcb-dev libxext-dev libxfixes-dev libxi-dev libxrender-dev libxcb1-dev libxcb-glx0-dev libxcb-keysyms1-dev libxcb-image0-dev libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0-dev libxkbcommon-dev libxkbcommon-x11-dev '^libxcb.*-dev'
33
- - name : Set clang version
34
- run : |
35
- sudo update-alternatives --remove-all clang || echo "nothing to remove"
36
- sudo update-alternatives --remove-all clang++ || echo "nothing to remove"
37
- sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 100
38
- sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 100
19
+ - uses : spatial-model-editor/setup-ci@v1
20
+ with :
21
+ extra-deps : " libglu1-mesa-dev libx11-dev libx11-xcb-dev libxext-dev libxfixes-dev libxi-dev libxrender-dev libxcb1-dev libxcb-glx0-dev libxcb-keysyms1-dev libxcb-image0-dev libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0-dev libxkbcommon-dev libxkbcommon-x11-dev '^libxcb.*-dev'"
39
22
- uses : actions/checkout@v4
40
23
- name : Build script
41
24
run : ./build.sh
@@ -47,21 +30,11 @@ jobs:
47
30
macos :
48
31
name : MacOS
49
32
runs-on : macos-13
50
- env :
51
- INSTALL_PREFIX : " /opt/smelibs"
52
- SUDO_CMD : " sudo"
53
- MACOSX_DEPLOYMENT_TARGET : " 11"
54
- CONFIGURE_EXTRAS : " "
55
- OS : " osx"
56
33
defaults :
57
34
run :
58
35
shell : bash
59
36
steps :
60
- - name : Brew install ninja
61
- run : brew install ninja
62
- - uses : maxim-lobanov/setup-xcode@v1
63
- with :
64
- xcode-version : " 14.3"
37
+ - uses : spatial-model-editor/setup-ci@v1
65
38
- uses : actions/checkout@v4
66
39
- name : Build script
67
40
run : ./build.sh
@@ -74,20 +47,13 @@ jobs:
74
47
name : Windows 64-bit Mingw
75
48
runs-on : windows-2022
76
49
env :
77
- INSTALL_PREFIX : " /c/smelibs"
78
- SUDO_CMD : " "
79
50
CONFIGURE_EXTRAS : " -DQT_QMAKE_TARGET_MKSPEC=win32-g++"
80
- OS : " win64-mingw"
81
51
defaults :
82
52
run :
83
53
shell : msys2 {0}
84
54
steps :
55
+ - uses : spatial-model-editor/setup-ci@v1
85
56
- uses : actions/checkout@v4
86
- - uses : msys2/setup-msys2@v2
87
- with :
88
- msystem : UCRT64
89
- update : true
90
- install : mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-cmake mingw-w64-ucrt-x86_64-ninja git
91
57
- name : Build script
92
58
run : ./build.sh
93
59
- uses : actions/upload-artifact@v4
0 commit comments