9
9
linux :
10
10
name : Linux
11
11
runs-on : ubuntu-20.04
12
- env :
13
- INSTALL_PREFIX : " /opt/smelibs"
14
- SUDO_CMD : " sudo"
15
- TARGET_TRIPLE : " x86_64-unknown-linux-gnu"
16
- PYTHON_EXE : " /usr/bin/python3"
17
- OS : " linux"
18
- CC : " clang"
19
- CXX : " clang++"
20
12
defaults :
21
13
run :
22
14
shell : bash
23
15
steps :
24
- - name : Add llvm repo for clang 18 & install
25
- run : |
26
- sudo wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
27
- sudo add-apt-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-18 main"
28
- sudo apt update -yy
29
- sudo apt install -yy clang-18
30
- - name : Set clang version
31
- run : |
32
- sudo update-alternatives --remove-all clang || echo "nothing to remove"
33
- sudo update-alternatives --remove-all clang++ || echo "nothing to remove"
34
- sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 100
35
- sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 100
16
+ - uses : spatial-model-editor/setup-ci@v1
36
17
- uses : actions/checkout@v4
37
18
- name : Build script
38
19
run : ./build.sh
@@ -44,21 +25,12 @@ jobs:
44
25
macos :
45
26
name : MacOS
46
27
runs-on : macos-13
47
- env :
48
- INSTALL_PREFIX : " /opt/smelibs"
49
- SUDO_CMD : " sudo"
50
- TARGET_TRIPLE : " x86_64-apple-darwin16"
51
- PYTHON_EXE : " /usr/bin/python3"
52
- MACOSX_DEPLOYMENT_TARGET : " 11"
53
- OS : " osx"
54
28
defaults :
55
29
run :
56
30
shell : bash
57
31
steps :
32
+ - uses : spatial-model-editor/setup-ci@v1
58
33
- uses : actions/checkout@v4
59
- - uses : maxim-lobanov/setup-xcode@v1
60
- with :
61
- xcode-version : " 14.3"
62
34
- name : Build script
63
35
run : ./build.sh
64
36
- uses : actions/upload-artifact@v4
@@ -69,22 +41,12 @@ jobs:
69
41
win64-mingw :
70
42
name : Windows 64-bit Mingw
71
43
runs-on : windows-2022
72
- env :
73
- INSTALL_PREFIX : " /c/smelibs"
74
- SUDO_CMD : " "
75
- TARGET_TRIPLE : " x86_64-w64-windows-gnu"
76
- PYTHON_EXE : " /ucrt64/bin/python"
77
- OS : " win64-mingw"
78
44
defaults :
79
45
run :
80
46
shell : msys2 {0}
81
47
steps :
48
+ - uses : spatial-model-editor/setup-ci@v1
82
49
- uses : actions/checkout@v4
83
- - uses : msys2/setup-msys2@v2
84
- with :
85
- msystem : UCRT64
86
- update : true
87
- install : mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-cmake mingw-w64-ucrt-x86_64-python make
88
50
- name : Build script
89
51
run : ./build.sh
90
52
- uses : actions/upload-artifact@v4
0 commit comments