-
Notifications
You must be signed in to change notification settings - Fork 0
224 lines (223 loc) · 7.35 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
on: [push]
jobs:
macos-latest-default-debug:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Env Variables
uses: ./.github/actions/set_env_var
with:
shell: bash
path: ${HOME}/.local/bin
cpath: ${HOME}/.local/include:/usr/local/opt/argp-standalone/include:${CPATH}
library_path: ${HOME}/.local/lib:/usr/local/opt/argp-standalone/lib/:${LIBRARY_PATH}
- run: ./setup.sh
- name: Configure Debug Xcode
run: ./configure
- name: Xcode Built Test Install
uses: ./.github/actions/xcode_build_test_install
with:
shell: bash
working-directory: output
macos-latest-gmake-debug:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Env Variables
uses: ./.github/actions/set_env_var
with:
shell: bash
path: ${HOME}/.local/bin
cpath: ${HOME}/.local/include:/usr/local/opt/argp-standalone/include:${CPATH}
library_path: ${HOME}/.local/lib:/usr/local/opt/argp-standalone/lib/:${LIBRARY_PATH}
- run: ./setup.sh
- name: Configure Debug Gmake
run: ./configure --gmake --output gmake
- name: Gmake Built Test Install
uses: ./.github/actions/gmake_build_test_install
with:
shell: bash
working-directory: gmake
macos-latest-ninja-debug:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Env Variables
uses: ./.github/actions/set_env_var
with:
shell: bash
path: ${HOME}/.local/bin
cpath: ${HOME}/.local/include:/usr/local/opt/argp-standalone/include:${CPATH}
library_path: ${HOME}/.local/lib:/usr/local/opt/argp-standalone/lib/:${LIBRARY_PATH}
- run: ./setup.sh
- name: Configure Debug Ninja
run: ./configure --ninja --output ninja
- name: Ninja Build Test Install
uses: ./.github/actions/ninja_build_test_install
with:
shell: bash
working-directory: ninja
macos-latest-gmake-release:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Env Variables
uses: ./.github/actions/set_env_var
with:
shell: bash
path: ${HOME}/.local/bin
cpath: ${HOME}/.local/include:/usr/local/opt/argp-standalone/include:${CPATH}
library_path: ${HOME}/.local/lib:/usr/local/opt/argp-standalone/lib/:${LIBRARY_PATH}
- run: ./setup.sh
- name: Configure Gmake Release
run: ./configure --gmake --release --output gmake_release
- name: Gmake Built Test Install
uses: ./.github/actions/gmake_build_test_install
with:
shell: bash
working-directory: gmake_release
- name: Make Achive
working-directory: gmake_release
run: tar -czvf ../viponTools.tar.gz viponTools
- uses: actions/upload-artifact@v3
with:
name: viponTools_macos
path: viponTools.tar.gz
ubuntu-2004-gmake-debug:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Env Variables
uses: ./.github/actions/set_env_var
with:
shell: bash
path: ${HOME}/.local/bin
cpath: ${HOME}/.local/include:${CPATH}
library_path: ${HOME}/.local/lib:${LIBRARY_PATH}
- run: ./setup.sh
- name: Configure Debug Gmake
run: ./configure --gmake --output gmake
- name: Gmake Built Test Install
uses: ./.github/actions/gmake_build_test_install
with:
shell: bash
working-directory: gmake
ubuntu-2004-ninja-debug:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Env Variables
uses: ./.github/actions/set_env_var
with:
shell: bash
path: ${HOME}/.local/bin
cpath: ${HOME}/.local/include:${CPATH}
library_path: ${HOME}/.local/lib:${LIBRARY_PATH}
- run: ./setup.sh
- run: chmod 0744 "${HOME}/.local/bin/ninja"
- name: Configure Debug Ninja
run: ./configure --ninja --output ninja
- name: Ninja Build Test Install
uses: ./.github/actions/ninja_build_test_install
with:
shell: bash
working-directory: ninja
ubuntu-2004-gmake-release:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Env Variables
uses: ./.github/actions/set_env_var
with:
shell: bash
path: ${HOME}/.local/bin
cpath: ${HOME}/.local/include:${CPATH}
library_path: ${HOME}/.local/lib:${LIBRARY_PATH}
- run: ./setup.sh
- name: Configure Gmake Release
run: ./configure --gmake --release --output gmake_release
- name: Gmake Build Test Install
uses: ./.github/actions/gmake_build_test_install
with:
shell: bash
working-directory: gmake_release
- name: Make Achive
working-directory: gmake_release
run: tar -czvf ../viponTools.tar.gz viponTools
- uses: actions/upload-artifact@v3
with:
name: viponTools_Ubuntu
path: viponTools.tar.gz
windows-ninja-debug-static:
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Env Variables
uses: ./.github/actions/set_env_var
with:
path: C:\bin\;C:\bin\ccache\
- run: .\setup.bat
- name: Configure MSVC Debug
run: python .\configure --ninja --static
- name: Ninja Build Test Install
uses: ./.github/actions/ninja_build_test_install
with:
shell: cmd
working-directory: output
windows-msvc-debug-static:
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Env Variables
uses: ./.github/actions/set_env_var
with:
path: C:\bin\ccache\
- run: .\setup.bat
- name: Configure MSVC Debug
run: python .\configure --vs --static
- name: MSVC Build
working-directory: output
run: cmake --build . --config Debug
- name: MSVC Test
working-directory: output
run: ctest -C Debug
- name: MSVC Install
working-directory: output
run: cmake --install . --config Debug
windows-msvc-release-shared:
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Env Variables
uses: ./.github/actions/set_env_var
with:
path: C:\bin\ccache\
- run: .\setup.bat
- name: Configure MSVC Release
run: python .\configure --vs --release
- name: MSVC Build
working-directory: output
run: cmake --build . --config Release
- name: MSVC Test
working-directory: output
run: ctest -C Release
- name: MSVC Install
working-directory: output
run: cmake --install . --config Release
- name: Make Achive
working-directory: output
run: tar -czvf ../viponTools.tar.gz viponTools
- uses: actions/upload-artifact@v3
with:
name: viponTools_windows
path: viponTools.tar.gz