7
7
ZLIB_VERSION : " v1.3.1" # not used for msvc builds
8
8
9
9
jobs :
10
- linux :
11
- name : Linux
12
- runs-on : ubuntu-20.04
13
- env :
14
- CONFIGURE_EXTRAS : " -DFEATURE_xcb=ON -DINPUT_bundled_xcb_xinput=yes -DFEATURE_libudev=OFF"
10
+ build :
11
+ runs-on : ${{ matrix.os }}
12
+ strategy :
13
+ fail-fast : false
14
+ matrix :
15
+ include :
16
+ - os : " ubuntu-20.04"
17
+ shell : " bash"
18
+ CONFIGURE_EXTRAS : " -DFEATURE_xcb=ON -DINPUT_bundled_xcb_xinput=yes -DFEATURE_libudev=OFF"
19
+ - os : " macos-13"
20
+ shell : " bash"
21
+ - os : " windows-2022"
22
+ shell : " msys2 {0}"
23
+ CONFIGURE_EXTRAS : " -DQT_QMAKE_TARGET_MKSPEC=win32-g++"
15
24
defaults :
16
25
run :
17
- shell : bash
18
- steps :
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'"
22
- - uses : actions/checkout@v4
23
- - name : Build script
24
- run : ./build.sh
25
- - uses : actions/upload-artifact@v4
26
- with :
27
- name : artifacts-linux
28
- path : ./artefacts/*
29
-
30
- macos :
31
- name : MacOS
32
- runs-on : macos-13
33
- defaults :
34
- run :
35
- shell : bash
36
- steps :
37
- - uses : spatial-model-editor/setup-ci@v1
38
- - uses : actions/checkout@v4
39
- - name : Build script
40
- run : ./build.sh
41
- - uses : actions/upload-artifact@v4
42
- with :
43
- name : artifacts-macos
44
- path : ./artefacts/*
45
-
46
- win64-mingw :
47
- name : Windows 64-bit Mingw
48
- runs-on : windows-2022
26
+ shell : ${{ matrix.shell }}
49
27
env :
50
- CONFIGURE_EXTRAS : " -DQT_QMAKE_TARGET_MKSPEC=win32-g++"
51
- defaults :
52
- run :
53
- shell : msys2 {0}
28
+ CONFIGURE_EXTRAS : ${{ matrix.CONFIGURE_EXTRAS }}
54
29
steps :
55
30
- uses : spatial-model-editor/setup-ci@v1
56
31
- uses : actions/checkout@v4
57
32
- name : Build script
58
33
run : ./build.sh
59
34
- uses : actions/upload-artifact@v4
60
35
with :
61
- name : artifacts-win64-mingw
36
+ name : artifacts-${{ matrix.os }}
62
37
path : ./artefacts/*
38
+ retention-days : 3
63
39
64
40
win32-mingw :
65
41
name : Windows 32-bit Mingw
81
57
install : mingw-w64-i686-gcc mingw-w64-i686-cmake mingw-w64-i686-ninja git
82
58
- name : Build script
83
59
run : ./build.sh
84
- - uses : actions/upload-artifact@v3
60
+ - uses : actions/upload-artifact@v4
85
61
with :
86
62
name : artifacts-win32-mingw
87
63
path : ./artefacts/*
100
76
toolset : 14.0
101
77
- name : Build script
102
78
run : ./build.ps1
103
- - uses : actions/upload-artifact@v3
79
+ - uses : actions/upload-artifact@v4
104
80
with :
105
81
name : artifacts-win64-msvc
106
82
path : ./artefacts/*
@@ -119,13 +95,13 @@ jobs:
119
95
toolset : 14.0
120
96
- name : Build script
121
97
run : ./build.ps1
122
- - uses : actions/upload-artifact@v3
98
+ - uses : actions/upload-artifact@v4
123
99
with :
124
100
name : artifacts-win32-msvc
125
101
path : ./artefacts/*
126
102
127
103
release :
128
- needs : [linux, macos, win64-mingw , win32-mingw, win64-msvc, win32-msvc]
104
+ needs : [build , win32-mingw, win64-msvc, win32-msvc]
129
105
runs-on : ubuntu-latest
130
106
permissions :
131
107
contents : write
0 commit comments